diff --git a/src/commands/resize-box-brush-command.js b/src/commands/resize-box-brush-command.js index 58a86aad..1a288377 100644 --- a/src/commands/resize-box-brush-command.js +++ b/src/commands/resize-box-brush-command.js @@ -1,5 +1,6 @@ import { DEFAULT_GRID_SIZE, snapPositiveSizeToGrid } from "../geometry/grid-snapping"; import { createOpaqueId } from "../core/ids"; +import { cloneBoxBrushGeometry, scaleBoxBrushGeometryToSize } from "../document/brushes"; import { cloneSelectionForCommand, getBoxBrushOrThrow, replaceBrush, setSingleBrushSelection } from "./brush-command-helpers"; export function createResizeBoxBrushCommand(options) { const resolvedSize = options.snapToGrid === false ? options.size : snapPositiveSizeToGrid(options.size, options.gridSize ?? DEFAULT_GRID_SIZE); diff --git a/src/commands/resize-box-brush-command.ts b/src/commands/resize-box-brush-command.ts index 0a6e4883..f7e2df77 100644 --- a/src/commands/resize-box-brush-command.ts +++ b/src/commands/resize-box-brush-command.ts @@ -1,5 +1,6 @@ import type { ToolMode } from "../core/tool-mode"; import { DEFAULT_GRID_SIZE, snapPositiveSizeToGrid } from "../geometry/grid-snapping"; +import { cloneBoxBrushGeometry, scaleBoxBrushGeometryToSize } from "../document/brushes"; import { createOpaqueId } from "../core/ids"; import type { EditorSelection } from "../core/selection"; diff --git a/src/commands/set-box-brush-transform-command.js b/src/commands/set-box-brush-transform-command.js index e18f3372..c3878cb9 100644 --- a/src/commands/set-box-brush-transform-command.js +++ b/src/commands/set-box-brush-transform-command.js @@ -1,4 +1,5 @@ import { createOpaqueId } from "../core/ids"; +import { cloneBoxBrushGeometry, scaleBoxBrushGeometryToSize } from "../document/brushes"; import { cloneSelectionForCommand, getBoxBrushOrThrow, replaceBrush, setSingleBrushEdgeSelection, setSingleBrushFaceSelection, setSingleBrushSelection, setSingleBrushVertexSelection } from "./brush-command-helpers"; function cloneVec3(vector) { return { diff --git a/src/commands/set-box-brush-transform-command.ts b/src/commands/set-box-brush-transform-command.ts index 4dcfd770..01db6014 100644 --- a/src/commands/set-box-brush-transform-command.ts +++ b/src/commands/set-box-brush-transform-command.ts @@ -3,6 +3,7 @@ import type { ToolMode } from "../core/tool-mode"; import { createOpaqueId } from "../core/ids"; import type { EditorSelection } from "../core/selection"; import type { Vec3 } from "../core/vector"; +import { cloneBoxBrushGeometry, scaleBoxBrushGeometryToSize } from "../document/brushes"; import { cloneSelectionForCommand,