mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-17 16:20:13 +08:00
Fix outliner toggle not updating UV
This commit is contained in:
parent
235f5c572f
commit
987499cbb8
@ -1065,12 +1065,11 @@ Interface.definePanels(function() {
|
|||||||
if (node[key] != undefined) new_affected.safePush(el);
|
if (node[key] != undefined) new_affected.safePush(el);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(selected.length, affected.length, node.selected)
|
|
||||||
new_affected.forEach(node => {
|
new_affected.forEach(node => {
|
||||||
affected.push(node);
|
affected.push(node);
|
||||||
previous_values[node.uuid] = node[key];
|
previous_values[node.uuid] = node[key];
|
||||||
node[key] = value;
|
node[key] = value;
|
||||||
if (key == 'autouv' && node instanceof Cube) Canvas.updateUV(node);
|
if (key == 'shade' && node instanceof Cube) Canvas.updateUV(node);
|
||||||
})
|
})
|
||||||
// Update
|
// Update
|
||||||
if (key == 'visibility') Canvas.updateVisibility();
|
if (key == 'visibility') Canvas.updateVisibility();
|
||||||
|
Loading…
Reference in New Issue
Block a user