diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index 3aa14ddf..591d831a 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -177,9 +177,9 @@ const GIZMO_CENTER_HANDLE_SIZE = 0.16; const GIZMO_SCREEN_SIZE_PERSPECTIVE = 0.11; const GIZMO_SCREEN_SIZE_ORTHOGRAPHIC = 1.4; const GIZMO_RENDER_ORDER = 4_000; -const ROTATION_SNAP_DEGREES = 15; const SCALE_SNAP_STEP = 0.1; const MIN_SCALE_COMPONENT = 0.1; +const MIN_BOX_SIZE_COMPONENT = 0.01; interface CachedMaterialTexture { signature: string; @@ -236,6 +236,8 @@ export class ViewportHost { private currentSelection: EditorSelection = { kind: "none" }; + private whiteboxSnapEnabled = true; + private whiteboxSnapStep = DEFAULT_GRID_SIZE; private projectAssets: Record = {}; private loadedModelAssets: Record = {}; private loadedImageAssets: Record = {};