Update scale operation to include brush target
This commit is contained in:
@@ -1173,7 +1173,7 @@ export class ViewportHost {
|
|||||||
|
|
||||||
this.transformGizmoGroup.add(this.createRotateHandle(axis, effectiveRotationAxis === axis));
|
this.transformGizmoGroup.add(this.createRotateHandle(axis, effectiveRotationAxis === axis));
|
||||||
}
|
}
|
||||||
} else if (session.operation === "scale" && session.target.kind === "modelInstance") {
|
} else if (session.operation === "scale" && (session.target.kind === "modelInstance" || session.target.kind === "brush")) {
|
||||||
for (const axis of ["x", "y", "z"] as const) {
|
for (const axis of ["x", "y", "z"] as const) {
|
||||||
this.transformGizmoGroup.add(this.createScaleHandle(axis, session.axisConstraint === axis));
|
this.transformGizmoGroup.add(this.createScaleHandle(axis, session.axisConstraint === axis));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user