From ab07a599cd69fd9f1ab320355549c5c877357f05 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 5 Apr 2026 02:57:07 +0200 Subject: [PATCH] Remove unused parameter 'size' from applyBrushRenderObjectTransform method --- src/viewport-three/viewport-host.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index 4c219a76..88d57edc 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -2007,11 +2007,10 @@ export class ViewportHost { } } - private applyBrushRenderObjectTransform(brushId: string, center: Vec3, rotationDegrees: Vec3, size: Vec3) { + private applyBrushRenderObjectTransform(brushId: string, center: Vec3, rotationDegrees: Vec3) { const renderObjects = this.brushRenderObjects.get(brushId); - const brush = this.currentDocument?.brushes[brushId]; - if (renderObjects === undefined || brush === undefined) { + if (renderObjects === undefined) { return; } @@ -2088,7 +2087,7 @@ export class ViewportHost { for (const brush of Object.values(this.currentDocument.brushes)) { this.updateBrushRenderObjectGeometry(brush); - this.applyBrushRenderObjectTransform(brush.id, brush.center, brush.rotationDegrees, brush.size); + this.applyBrushRenderObjectTransform(brush.id, brush.center, brush.rotationDegrees); } for (const entity of getEntityInstances(this.currentDocument.entities)) { @@ -2122,8 +2121,7 @@ export class ViewportHost { this.applyBrushRenderObjectTransform( this.currentTransformSession.target.brushId, this.currentTransformSession.preview.center, - this.currentTransformSession.preview.rotationDegrees, - this.currentTransformSession.preview.size + this.currentTransformSession.preview.rotationDegrees ); } break;