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) {