Skip to content

Commit fa38da0

Browse files
authored
Update building.js
1 parent ab0b3a4 commit fa38da0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/building.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ class Building {
148148
const mesh = [];
149149
if (this.parts.length > 0) {
150150
this.outerElement.options.building.visible = false;
151-
mesh.push(...this.outerElement.render());
151+
const outerMeshes = this.outerElement.render()
152+
outerMeshes[0].visible = false;
153+
outerMeshes[1].visible = false;
154+
mesh.push(...outerMeshes);
152155
for (let i = 0; i < this.parts.length; i++) {
153156
mesh.push(...this.parts[i].render());
154157
}

0 commit comments

Comments
 (0)