瀏覽代碼

[unity] Fixed an issue related to SkeletonRenderer and Prefabs not calling LateUpdate. Closes #1689.

Harald Csaszar 5 年之前
父節點
當前提交
c54745cbc7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs

+ 1 - 1
spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonRenderer.cs

@@ -355,7 +355,7 @@ namespace Spine.Unity {
 			#if UNITY_EDITOR && NEW_PREFAB_SYSTEM
 			#if UNITY_EDITOR && NEW_PREFAB_SYSTEM
 			// Don't store mesh or material at the prefab, otherwise it will permanently reload
 			// Don't store mesh or material at the prefab, otherwise it will permanently reload
 			var prefabType = UnityEditor.PrefabUtility.GetPrefabAssetType(this);
 			var prefabType = UnityEditor.PrefabUtility.GetPrefabAssetType(this);
-			if (!UnityEditor.PrefabUtility.IsPartOfPrefabInstance(this) &&
+			if (UnityEditor.PrefabUtility.IsPartOfPrefabAsset(this) &&
 				(prefabType == UnityEditor.PrefabAssetType.Regular || prefabType == UnityEditor.PrefabAssetType.Variant)) {
 				(prefabType == UnityEditor.PrefabAssetType.Regular || prefabType == UnityEditor.PrefabAssetType.Variant)) {
 				return;
 				return;
 			}
 			}