2
0
lviguier 1 жил өмнө
parent
commit
e0d5918aba

+ 8 - 1
hide/comp/SceneEditor.hx

@@ -2688,7 +2688,14 @@ class SceneEditor {
 	}
 
 	function hasBeenRemoved( e : hrt.prefab.Prefab ) {
-		var root = sceneData;
+		var root = e;
+
+		if (root.shared != null && root.shared.parentPrefab != null) {
+			if (hasBeenRemoved(root.shared.parentPrefab))
+				return true;
+			root = null;
+		}
+
 		while( e != null && e != root ) {
 			if( e.parent != null && e.parent.children.indexOf(e) < 0 )
 				return true;