Skip to content

Commit

Permalink
Fixed: sprite masks not displaying correctly when changing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
s1fx committed Nov 27, 2023
1 parent 2e38f97 commit a55175c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Assets/CubismPoser/CubismPoser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@ private void Awake()

if (TryGetComponent<CubismParametersInspector>(out var cubismInspector))
DestroyImmediate(cubismInspector);


if (!TryGetComponent(out _updateController))
_updateController = gameObject.AddComponent<CubismUpdateController>();

CubismUpdater(false);

_updateController.enabled = true;
_initialized = true;
}
else
Expand Down Expand Up @@ -61,9 +66,6 @@ private void CubismUpdater(bool state)
{
if (_model != null)
_model.enabled = state;

if (_updateController != null)
_updateController.enabled = state;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/CubismPoser/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1

0 comments on commit a55175c

Please sign in to comment.