Преглед изворни кода

Filtree: fix rename on group

lviguier пре 3 недеља
родитељ
комит
c2ff859b86
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      hide/comp/SceneEditor.hx

+ 4 - 2
hide/comp/SceneEditor.hx

@@ -2261,8 +2261,10 @@ class SceneEditor {
 			else if (!enabled)
 			else if (!enabled)
 				data.element.classList.remove(className);
 				data.element.classList.remove(className);
 
 
-			for (c in data.children)
-				set(c.item, className, enabled);
+			if (data.children != null) {
+				for (c in data.children)
+					set(c.item, className, enabled);
+			}
 		}
 		}
 
 
 		function is(p: hrt.prefab.Prefab, status : (p : hrt.prefab.Prefab) -> Bool) {
 		function is(p: hrt.prefab.Prefab, status : (p : hrt.prefab.Prefab) -> Bool) {