Skip to content

Commit e5b4964

Browse files
author
Torbjörn Allard
committed
Fix group mesh visibility not syncing in Canvas.updateVisibility
1 parent 8912004 commit e5b4964

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/preview/canvas.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,9 @@ export const Canvas = {
654654
},
655655
updateVisibility() {
656656
Canvas.updateView({elements: Outliner.elements, element_aspects: {visibility: true}})
657+
Group.all.forEach(group => {
658+
if (group.mesh) group.mesh.visible = group.visibility;
659+
});
657660
},
658661
updateAllFaces(texture) {
659662
Outliner.elements.forEach(function(obj) {

0 commit comments

Comments
 (0)