@@ -456,7 +456,7 @@ class SceneEditor {
value : o,
text : o.name,
icon : "fa fa-"+icon,
- children : o.children.length > 0 || (ref != null && @:privateAccess ref.editMode),
+ children : (o.children.length > 0 && !p.hideChildren) || (ref != null && @:privateAccess ref.editMode),
state: state
};
return r;
@@ -3,6 +3,7 @@ package hide.prefab;
typedef HideProps = {
var icon : String;
var name : String;
+ @:optional var hideChildren : Bool;
@:optional var fileSource : Array<String>;
@:optional dynamic function allowChildren( type : String ) : Bool;
@:optional dynamic function allowParent( p : hrt.prefab.Prefab ) : Bool;