From 4ba452d812573774521e0f123d99c7cf01d63c18 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Tue, 9 Dec 2025 15:40:09 -0500 Subject: [PATCH] fix shadow for indexed parts --- src/kiri/core/widget.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/kiri/core/widget.js b/src/kiri/core/widget.js index db378f1d..bcb69fd3 100644 --- a/src/kiri/core/widget.js +++ b/src/kiri/core/widget.js @@ -474,6 +474,7 @@ class Widget { let rad = deg * (Math.PI / 180); if (rad !== this.track.indexRad) { this.track.indexRad = rad; + this.clearShadows(); this.setModified(); this._updateMeshPosition(); } @@ -840,6 +841,12 @@ class Widget { this.mesh.visible = false; } + clearShadows() { + delete this.cache.shadow; + delete this.cache.shadows; + return this; + } + async shadowAt(z) { let shadows = this.cache.shadows; if (!shadows) {