Skip to content

Commit a55175c

Browse files
committed
Fixed: sprite masks not displaying correctly when changing parameters
1 parent 2e38f97 commit a55175c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Assets/CubismPoser/CubismPoser.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ private void Awake()
3131

3232
if (TryGetComponent<CubismParametersInspector>(out var cubismInspector))
3333
DestroyImmediate(cubismInspector);
34-
34+
35+
if (!TryGetComponent(out _updateController))
36+
_updateController = gameObject.AddComponent<CubismUpdateController>();
37+
3538
CubismUpdater(false);
39+
40+
_updateController.enabled = true;
3641
_initialized = true;
3742
}
3843
else
@@ -61,9 +66,6 @@ private void CubismUpdater(bool state)
6166
{
6267
if (_model != null)
6368
_model.enabled = state;
64-
65-
if (_updateController != null)
66-
_updateController.enabled = state;
6769
}
6870
}
6971
}

Assets/CubismPoser/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.1

0 commit comments

Comments
 (0)