From bd2872a5b1288799b3d50e6379772af992b32ac9 Mon Sep 17 00:00:00 2001 From: Jun Koyama Date: Thu, 3 Sep 2020 20:17:52 +0900 Subject: [PATCH] Fix Physics input reflect flag on evaluate --- CHANGELOG.md | 1 + src/physics/cubismphysics.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 940fe0c..dfdab81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * Fix implementation of `iterator#increment` in `csmmap` and `csmvector`. * Fix delay in starting fade-out for expressions. +* Fix Physics input reflect flag on evaluate. * Fix `Int` to `Float` when getting `PhysicsSettings.Vertices.Radius` in `physics3.json` parsing. * **[INFO]** This fix may change the behavior of the physics operations. The behavior changes if the value of `PhysicsSettings.Vertices.Radius` in `physics3.json` is less than `1.0`. diff --git a/src/physics/cubismphysics.ts b/src/physics/cubismphysics.ts index 0d6d65b..67e0f3a 100644 --- a/src/physics/cubismphysics.ts +++ b/src/physics/cubismphysics.ts @@ -132,7 +132,7 @@ export namespace Live2DCubismFramework { parameterDefaultValue[currentInput[i].sourceParameterIndex], currentSetting.normalizationPosition, currentSetting.normalizationAngle, - currentInput[0].reflect, + currentInput[i].reflect, weight ); }