Browse Source

Fixed broken FX2D Editor

Clement Espeute 2 years ago
parent
commit
6df6527c94
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hide/comp/SceneEditor.hx

+ 2 - 2
hide/comp/SceneEditor.hx

@@ -65,9 +65,9 @@ class SceneEditorContext extends hide.prefab.EditContext {
 				if(ctx != null) {
 					var pobj = elt.parent == editor.sceneData ? ctx.shared.root3d : getContextRec(elt.parent).local3d;
 					var pobj2d = elt.parent == editor.sceneData ? ctx.shared.root2d : getContextRec(elt.parent).local2d;
-					if( ctx.local3d != pobj )
+					if( ctx.local3d != pobj && ctx.local3d != null)
 						rootObjects.push(ctx.local3d);
-					if( ctx.local2d != pobj2d )
+					if( ctx.local2d != pobj2d && ctx.local2d != null)
 						rootObjects2D.push(ctx.local2d);
 				}
 			}