Skip to content

Commit 16c279d

Browse files
committed
fix: correct lod material visibility when disabling postproduction
1 parent d4fab7c commit 16c279d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/front/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thatopen/components-front",
33
"description": "Collection of frontend tools to author BIM apps.",
4-
"version": "3.1.4",
4+
"version": "3.1.5",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",

packages/front/src/core/PostproductionRenderer/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ export class Postproduction {
5555
if (value && !this._initialized) {
5656
this.initialize();
5757
}
58+
if (!value) {
59+
for (const material of this.basePass.isolatedMaterials) {
60+
material.visible = true;
61+
}
62+
}
5863
}
5964

6065
get aoPass() {

0 commit comments

Comments
 (0)