Browse Source

bugfix (hidden element)

Nicolas Cannasse 4 years ago
parent
commit
ed7a4a79fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hide/comp/SceneEditor.hx

+ 1 - 1
hide/comp/SceneEditor.hx

@@ -1178,7 +1178,7 @@ class SceneEditor {
 
 
 		if(p != sceneData) {
 		if(p != sceneData) {
 			var el = tree.getElement(p);
 			var el = tree.getElement(p);
-			applyTreeStyle(p, el, pname);
+			if( el != null ) applyTreeStyle(p, el, pname);
 		}
 		}
 
 
 		applySceneStyle(p);
 		applySceneStyle(p);