Skip to content

Commit

Permalink
[unity] Fixed UpdateWhenInvisible being incorrect when using Skeleton…
Browse files Browse the repository at this point in the history
…RenderSeparator. See #2519.
  • Loading branch information
HaraldCsaszar committed May 6, 2024
1 parent a73d0bc commit 2407445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -239,6 +239,7 @@ public class SpriteMaskInteractionMaterials {
Initialize(false);
if (meshRenderer)
meshRenderer.enabled = false;
updateMode = UpdateMode.FullUpdate;
}
}
remove {
Expand Down Expand Up @@ -331,7 +332,8 @@ public class SpriteMaskInteractionMaterials {

public virtual void Awake () {
Initialize(false);
updateMode = updateWhenInvisible;
if (generateMeshOverride == null || !disableRenderingOnOverride)
updateMode = updateWhenInvisible;
}

#if UNITY_EDITOR && CONFIGURABLE_ENTER_PLAY_MODE
Expand Down
2 changes: 1 addition & 1 deletion spine-unity/Assets/Spine/package.json
Expand Up @@ -2,7 +2,7 @@
"name": "com.esotericsoftware.spine.spine-unity",
"displayName": "spine-unity Runtime",
"description": "This plugin provides the spine-unity runtime core.",
"version": "4.1.41",
"version": "4.1.42",
"unity": "2018.3",
"author": {
"name": "Esoteric Software",
Expand Down

0 comments on commit 2407445

Please sign in to comment.