Skip to content

Commit

Permalink
fix: correct culler when displaying coordinated models
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Jun 19, 2024
1 parent a6d3817 commit 471e8f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"description": "Collection of tools to author BIM apps.",
"version": "2.0.12",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down Expand Up @@ -44,4 +43,4 @@
"vite": "5.1.6",
"vite-plugin-dts": "3.7.3"
}
}
}
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/components",
"description": "Collection of core functionalities to author BIM apps.",
"version": "2.0.12",
"version": "2.0.13",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down Expand Up @@ -53,4 +53,4 @@
"three": "^0.160.1",
"web-ifc": "0.0.53"
}
}
}
3 changes: 2 additions & 1 deletion packages/core/src/core/Cullers/src/mesh-culler-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ export class MeshCullerRenderer extends CullerRenderer implements Disposable {

mesh.visible = false;

colorMesh.applyMatrix4(mesh.matrix);
mesh.updateWorldMatrix(true, false);
colorMesh.applyMatrix4(mesh.matrixWorld);
colorMesh.updateMatrix();

this.scene.add(colorMesh);
Expand Down

0 comments on commit 471e8f2

Please sign in to comment.