Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions hide/comp/SceneEditor.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5736,11 +5736,16 @@ class SceneEditor {

for( g in (view.config.get("sceneeditor.newgroups") : Array<String>) ) {
var parts = g.split("|");
var cl : Dynamic = Type.resolveClass(parts[1]);
if( cl == null ) continue;
final classes : Array<Dynamic> = [];
for (partIdx in 1...parts.length) {
var cl : Class<Dynamic> = Type.resolveClass(parts[partIdx]);
if( cl == null ) continue;
classes.push(cl);
}
if( classes.length == 0 ) continue;
groups.push({
label : parts[0],
cl : cl,
classes : classes,
group : [],
});
}
Expand All @@ -5759,12 +5764,16 @@ class SceneEditor {
newItems.push(m);
else {
var found = false;
for( g in groups )
if( hrt.prefab.Prefab.isOfType(hrt.prefab.Prefab.getPrefabInfoByName(ptype).prefabClass,g.cl) ) {
g.group.push(m);
found = true;
break;
}
for( g in groups ) {
for(cls in g.classes)
if( hrt.prefab.Prefab.isOfType(hrt.prefab.Prefab.getPrefabInfoByName(ptype).prefabClass, cls) ) {
g.group.push(m);
found = true;
break;
}

if (found) break;
}
if( !found ) gother.push(m);
}
}
Expand Down