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) {
Project asset storage is unavailable. Imported assets cannot be persisted.
) : null}
-
Brushes
+
Whitebox Solids
{brushList.length === 0 ? ( -
Use Add > Box and click in the viewport to create the first brush.
+
Use Add > Whitebox Box and click in the viewport to create the first solid.
) : (
{brushList.map((brush, brushIndex) => { @@ -4811,7 +4826,7 @@ export function App({ store, initialStatusMessage }: AppProps) { data-testid="selected-brush-name" type="text" value={brushNameDraft} - placeholder={`Box Brush ${brushIndex + 1}`} + placeholder={`Whitebox Box ${brushIndex + 1}`} onChange={(event) => setBrushNameDraft(event.currentTarget.value)} onBlur={applyBrushNameChange} onFocus={(event) => event.currentTarget.select()} @@ -6650,11 +6665,11 @@ export function App({ store, initialStatusMessage }: AppProps) { ) : null} ) : selectedBrush === null ? ( -
Select a brush or entity to edit authored properties.
+
Select a whitebox solid or entity to edit authored properties.
) : ( <>
-
Brush Kind
+
Whitebox Solid Type
box