diff --git a/src/app/App.tsx b/src/app/App.tsx index 9de2a8b2..4258ff4c 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -604,7 +604,7 @@ function getSelectedBrushLabel(selection: EditorSelection, brushes: BoxBrush[]): const selectedBrushId = getSingleSelectedBrushId(selection); if (selectedBrushId === null) { - return "No brush selected"; + return "No solid selected"; } return getBrushLabelById(selectedBrushId, brushes); @@ -2143,12 +2143,27 @@ export function App({ store, initialStatusMessage }: AppProps) { const center = creationPreview.center === null ? undefined : creationPreview.center; store.executeCommand( - createCreateBoxBrushCommand(center === undefined ? {} : { center }) + createCreateBoxBrushCommand( + center === undefined + ? { + snapToGrid: whiteboxSnapEnabled, + gridSize: whiteboxSnapStep + } + : { + center, + snapToGrid: whiteboxSnapEnabled, + gridSize: whiteboxSnapStep + } + ) ); completeCreation( center === undefined - ? `Created a box brush snapped to the ${DEFAULT_GRID_SIZE}m grid.` - : `Created a box brush at snapped center ${formatVec3(center)}.` + ? whiteboxSnapEnabled + ? `Created a whitebox box on the ${whiteboxSnapStep}m grid.` + : "Created a whitebox box." + : whiteboxSnapEnabled + ? `Created a whitebox box at snapped center ${formatVec3(center)}.` + : `Created a whitebox box at ${formatVec3(center)}.` ); return true; } @@ -3831,7 +3846,7 @@ export function App({ store, initialStatusMessage }: AppProps) { const applyBrushNameChange = () => { if (selectedBrush === null) { - setStatusMessage("Select a box brush before renaming it."); + setStatusMessage("Select a whitebox box before renaming it."); return; } @@ -4790,9 +4805,9 @@ export function App({ store, initialStatusMessage }: AppProps) {