Fix outliner toggles not affecting selection

This commit is contained in:
JannisX11 2021-02-23 22:12:20 +01:00
parent 90d8057b27
commit 235f5c572f

View File

@ -1060,7 +1060,12 @@ Interface.definePanels(function() {
if (node instanceof Group) {
node.forEachChild(node => new_affected.push(node))
affected_groups.push(node);
} else if (node.selected && selected.length > 1) {
selected.forEach(el => {
if (node[key] != undefined) new_affected.safePush(el);
})
}
console.log(selected.length, affected.length, node.selected)
new_affected.forEach(node => {
affected.push(node);
previous_values[node.uuid] = node[key];