From 759439732d130e5395678335d2c951cc186d898a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 13 Apr 2026 22:29:57 +0200 Subject: [PATCH] Fix condition logic in transform-session.ts --- src/core/transform-session.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/transform-session.ts b/src/core/transform-session.ts index 41afaa92..a7a33ac8 100644 --- a/src/core/transform-session.ts +++ b/src/core/transform-session.ts @@ -721,11 +721,16 @@ export function supportsTransformAxisConstraint( case "scale": if ( session.target.kind === "modelInstance" || - session.target.kind === "brush" || + session.target.kind === "brush" + ) { + return true; + } + + if ( session.target.kind === "brushVertex" || session.target.kind === "pathPoint" ) { - return session.target.kind !== "brushVertex" && session.target.kind !== "pathPoint"; + return false; } if (session.target.kind === "brushFace") {