Skip to content

Commit

Permalink
GEP-136 feat: Update toRemove condition to strictly check for false
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Feb 6, 2024
1 parent ada4f73 commit 676dbe3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 676dbe3

Please sign in to comment.