2
0
trethaller 6 жил өмнө
parent
commit
1554478781

+ 6 - 1
hide/comp/SceneEditor.hx

@@ -759,7 +759,12 @@ class SceneEditor {
 
 	public function getContext(elt : PrefabElement) {
 		if(elt == null) return null;
-		if(elt == sceneData) return context;
+		var ctx = null;
+		if(elt == sceneData) {
+			ctx = context.shared.contexts.get(sceneData);
+			if(ctx != null) return ctx; // Some libs make their own instances
+			return context;
+		}
 		return context.shared.contexts.get(elt);
 	}