From ab88923c857d9652699980b307c4d6a25a9c6cab Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 6 Apr 2026 17:32:26 +0200 Subject: [PATCH] Add water contact patch collection and material update in viewport-host.ts --- src/viewport-three/viewport-host.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index 172b905a..86fabf79 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -3116,13 +3116,16 @@ export class ViewportHost { ); const previousMaterials = renderObjects.mesh.material; + const contactPatches = + brush.volume.mode === "water" ? this.collectViewportWaterContactPatches(this.currentDocument, brush.id, brush.center, brush.rotationDegrees, brush.size) : []; renderObjects.mesh.material = BOX_FACE_IDS.map((faceId) => this.createFaceMaterial( brush, faceId, this.currentDocument?.materials[brush.faces[faceId].materialId ?? ""], this.getFaceHighlightState(brush.id, faceId), - volumeRenderPaths + volumeRenderPaths, + contactPatches ) );