From c54745cbc73df02fb448795509696184bcee1d6e Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 3 Jun 2020 15:55:30 +0200 Subject: [PATCH] [unity] Fixed an issue related to SkeletonRenderer and Prefabs not calling LateUpdate. Closes #1689. --- .../Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs index ae890b2c4..3e98eef8f 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs @@ -355,7 +355,7 @@ namespace Spine.Unity { #if UNITY_EDITOR && NEW_PREFAB_SYSTEM // Don't store mesh or material at the prefab, otherwise it will permanently reload var prefabType = UnityEditor.PrefabUtility.GetPrefabAssetType(this); - if (!UnityEditor.PrefabUtility.IsPartOfPrefabInstance(this) && + if (UnityEditor.PrefabUtility.IsPartOfPrefabAsset(this) && (prefabType == UnityEditor.PrefabAssetType.Regular || prefabType == UnityEditor.PrefabAssetType.Variant)) { return; }