mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-06 17:31:09 +08:00
Fix #2661 dragging multiple groups in outliner can causes recursive structure
This commit is contained in:
parent
d207e00cae
commit
7953f13112
@ -854,7 +854,9 @@ function moveOutlinerSelectionTo(item, target, event, order) {
|
||||
Outliner.root.forEach(node => {
|
||||
if (node instanceof Group) {
|
||||
node.forEachChild(child => {
|
||||
if (child.selected && !child.parent.selected) items.push(child);
|
||||
if (child.selected && !child.parent.selected && !target.isChildOf?.(child)) {
|
||||
items.push(child);
|
||||
}
|
||||
}, null, true);
|
||||
} else if (node.selected) {
|
||||
items.push(node);
|
||||
|
Loading…
x
Reference in New Issue
Block a user