From 471e8f2f189e098c7026c621d3bebd176cb01063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Gonz=C3=A1lez=20Viegas?= Date: Wed, 19 Jun 2024 10:53:19 +0200 Subject: [PATCH] fix: correct culler when displaying coordinated models --- package.json | 3 +-- packages/core/package.json | 4 ++-- packages/core/src/core/Cullers/src/mesh-culler-renderer.ts | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f4307978d..9ccc10883 100644 --- a/package.json +++ b/package.json @@ -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)", @@ -44,4 +43,4 @@ "vite": "5.1.6", "vite-plugin-dts": "3.7.3" } -} \ No newline at end of file +} diff --git a/packages/core/package.json b/packages/core/package.json index 80ee7b41f..7bf5f7ea2 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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)", @@ -53,4 +53,4 @@ "three": "^0.160.1", "web-ifc": "0.0.53" } -} \ No newline at end of file +} diff --git a/packages/core/src/core/Cullers/src/mesh-culler-renderer.ts b/packages/core/src/core/Cullers/src/mesh-culler-renderer.ts index 26b27f947..3c60fda13 100644 --- a/packages/core/src/core/Cullers/src/mesh-culler-renderer.ts +++ b/packages/core/src/core/Cullers/src/mesh-culler-renderer.ts @@ -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);