2
0
Эх сурвалжийг харах

Allow any child on "settings" object

trethaller 7 жил өмнө
parent
commit
8a74b7d0fd

+ 1 - 1
hide/prefab/Object3D.hx

@@ -130,7 +130,7 @@ class Object3D extends Prefab {
 		return {
 			icon : children == null || children.length > 0 ? "folder-open" : "genderless",
 			name : "Group",
-			allowChildren : function(t) return hxd.prefab.Library.isOfType(t,Object3D) || ["settings", "renderProps", "material", "shader"].indexOf(t) >= 0
+			allowChildren : function(t) return hxd.prefab.Library.isOfType(t,Object3D) || ["settings", "material", "shader"].indexOf(t) >= 0 || name == "settings"
 		};
 	}
 	#end