Fix #2661 dragging multiple groups in outliner can causes recursive structure

This commit is contained in:
JannisX11 2025-02-01 14:52:20 +01:00
parent d207e00cae
commit 7953f13112

View File

@ -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);