Import and use terrain brush utilities in App.tsx and update viewport-host.ts
This commit is contained in:
@@ -81,6 +81,16 @@ import {
|
||||
resolveSelectionActiveId,
|
||||
type EditorSelection
|
||||
} from "../core/selection";
|
||||
import {
|
||||
clampTerrainBrushFalloff,
|
||||
clampTerrainBrushRadius,
|
||||
clampTerrainBrushStrength,
|
||||
createDefaultTerrainBrushSettings,
|
||||
getTerrainBrushToolLabel,
|
||||
type ArmedTerrainBrushState,
|
||||
type TerrainBrushStrokeCommit,
|
||||
type TerrainBrushTool
|
||||
} from "../core/terrain-brush";
|
||||
import {
|
||||
createTransformSession,
|
||||
doesTransformSessionChangeTarget,
|
||||
|
||||
@@ -7358,7 +7358,7 @@ export class ViewportHost {
|
||||
const committed =
|
||||
this.terrainBrushCommitHandler?.({
|
||||
terrain: cloneTerrain(finalPreviewTerrain),
|
||||
commandLabel: `${toolState.tool.charAt(0).toUpperCase()}${toolState.tool.slice(1)} terrain`,
|
||||
commandLabel: getTerrainBrushCommandLabel(toolState.tool),
|
||||
tool: toolState.tool
|
||||
}) === true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user