From 676dbe3304b66044862f552388cf7cfce470e46b Mon Sep 17 00:00:00 2001 From: afonso Date: Tue, 6 Feb 2024 19:27:49 +0000 Subject: [PATCH] GEP-136 feat: Update toRemove condition to strictly check for false --- .../geppetto-ui/src/3d-canvas/threeDEngine/ThreeDEngine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geppetto.js/geppetto-ui/src/3d-canvas/threeDEngine/ThreeDEngine.js b/geppetto.js/geppetto-ui/src/3d-canvas/threeDEngine/ThreeDEngine.js index 4f718364b..622b90135 100644 --- a/geppetto.js/geppetto-ui/src/3d-canvas/threeDEngine/ThreeDEngine.js +++ b/geppetto.js/geppetto-ui/src/3d-canvas/threeDEngine/ThreeDEngine.js @@ -429,7 +429,7 @@ export default class ThreeDEngine { const toRemove = this.scene.children.filter(child => { const mappedInstance = this.instancesMap.get(child.instancePath); if (child.instancePath !== undefined) { - if (!mappedInstance || !mappedInstance.visibility) { + if (!mappedInstance || mappedInstance.visibility === false) { return true; } if (this.checkMaterial(child, mappedInstance) && mappedInstance) {