Refactor target kind checks for scale operation using supportsTransformOperation

This commit is contained in:
2026-05-11 13:58:01 +02:00
parent 937be04240
commit 77e6a147ea

View File

@@ -3505,10 +3505,7 @@ export class ViewportHost {
}
} else if (
session.operation === "scale" &&
(session.target.kind === "modelInstance" ||
session.target.kind === "brush" ||
session.target.kind === "brushFace" ||
session.target.kind === "brushEdge")
supportsTransformOperation(session.target, "scale")
) {
for (const axis of ["x", "y", "z"] as const) {
this.transformGizmoGroup.add(