From fdc61bd09adef17d53861b336496bf379022bb62 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 25 May 2025 18:39:22 -0600 Subject: [PATCH] update widget outline when rotated or scaled --- src/kiri/widget.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/kiri/widget.js b/src/kiri/widget.js index bad76c24..d66f6607 100644 --- a/src/kiri/widget.js +++ b/src/kiri/widget.js @@ -545,6 +545,9 @@ class Widget { this.setWireframe(false); this.clearSlices(); mesh.geometry.applyMatrix4(new THREE.Matrix4().makeScale(x, y, z)); + if (this.outline) { + this.setEdges(true); + } scale.x *= (x || 1.0); scale.y *= (y || 1.0); scale.z *= (z || 1.0); @@ -558,6 +561,9 @@ class Widget { if (center) { this.center(false); } + if (this.outline) { + this.setEdges(true); + } if ((x || y || z) && api && api.event) { api.event.emit('widget.rotate', {widget: this, x, y, z}); }