浏览代码

Allow any child on "settings" object

trethaller 7 年之前
父节点
当前提交
8a74b7d0fd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hide/prefab/Object3D.hx

+ 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