Commit Graph

3499 Commits

Author SHA1 Message Date
c3cfaabcd9 Test: Prevent viewport refocus when scene document changes without focus request 2026-04-21 02:31:12 +02:00
c02eb78d1d Fix: Remove sceneDocument from viewport focus dependencies 2026-04-21 02:31:12 +02:00
94dec56eb4 auto-git:
[add] src/rendering/terrain-layer-material.ts
 [add] tests/domain/terrains.test.ts
 [change] src/app/App.tsx
 [change] src/core/terrain-brush.ts
 [change] src/document/migrate-scene-document.ts
 [change] src/document/scene-document-validation.ts
 [change] src/document/scene-document.ts
 [change] src/document/terrains.ts
 [change] src/geometry/terrain-brush.ts
 [change] src/geometry/terrain-mesh.ts
 [change] src/runtime-three/rapier-collision-world.ts
 [change] src/runtime-three/runtime-host.ts
 [change] src/runtime-three/runtime-scene-build.ts
 [change] src/viewport-three/ViewportCanvas.tsx
 [change] src/viewport-three/ViewportPanel.tsx
 [change] src/viewport-three/viewport-host.ts
 [change] tests/domain/build-runtime-scene.test.ts
 [change] tests/domain/rapier-collision-world.test.ts
 [change] tests/domain/terrain.command.test.ts
 [change] tests/domain/water-material.test.ts
 [change] tests/geometry/terrain-brush.test.ts
 [change] tests/geometry/terrain-mesh.test.ts
 [change] tests/serialization/scene-document-json.test.ts
 [change] tests/unit/terrain-foundation.integration.test.tsx
 [change] tests/unit/viewport-canvas.test.tsx
2026-04-20 02:37:01 +02:00
02f6d058a0 Manage active terrain brush state in App component 2026-04-20 02:37:01 +02:00
5edd87bbb9 auto-git:
[change] src/app/App.tsx
2026-04-18 20:36:53 +02:00
84c914611d auto-git:
[add] tests/geometry/terrain-brush.test.ts
2026-04-18 20:36:52 +02:00
d194d2a008 Add terrain brush preview sync in ViewportHost 2026-04-18 20:34:29 +02:00
bd7ea1adc9 auto-git:
[change] src/app/App.tsx
2026-04-18 20:33:04 +02:00
30130e1399 auto-git:
[change] src/app/App.tsx
2026-04-18 20:33:04 +02:00
c093a0e320 auto-git:
[change] tests/unit/terrain-foundation.integration.test.tsx
2026-04-18 20:33:04 +02:00
65f5ef1a7b auto-git:
[change] tests/unit/viewport-canvas.test.tsx
2026-04-18 20:32:16 +02:00
036dd50d19 auto-git:
[change] src/viewport-three/viewport-host.ts
2026-04-18 20:32:16 +02:00
44f267b514 Add Terrain Tools section with brush controls in App.tsx 2026-04-18 20:30:32 +02:00
a21092b66f auto-git:
[change] src/app/App.tsx
2026-04-18 20:30:32 +02:00
3bd51857c4 Add terrain brush tool handling and settings in App.tsx 2026-04-18 20:29:32 +02:00
6e6f622530 Calculate active terrain brush state based on selections 2026-04-18 20:29:05 +02:00
6279eba58b Add state for terrain brush tool and settings 2026-04-18 20:29:05 +02:00
46701db3f1 Import and use terrain brush utilities in App.tsx and update viewport-host.ts 2026-04-18 20:28:40 +02:00
3cfd1ff54d Reorder imports in viewport-host.ts 2026-04-18 20:28:26 +02:00
9dfd3b9c5d Import getTerrainBrushCommandLabel function 2026-04-18 20:28:26 +02:00
6383af29cb Dispose of terrain brush preview resources in ViewportHost 2026-04-18 20:28:26 +02:00
eef6a3c887 Add terrain brush functionality in ViewportHost 2026-04-18 20:27:38 +02:00
a95a9b1e38 Add terrain brush functionality to viewport-host.ts 2026-04-18 20:27:11 +02:00
0453cb13d0 Update terrain rendering to use displayed terrain state and sync brush preview 2026-04-18 20:24:34 +02:00
011e20c973 Reset active terrain brush stroke and sync preview on document update 2026-04-18 20:24:34 +02:00
b9ac6b2b00 Add terrain brush preview and state management in viewport-host.ts 2026-04-18 20:23:52 +02:00
fc375c4937 Update ViewportCanvas and ViewportPanel to support terrain brush state and commit handling 2026-04-18 20:23:34 +02:00
d42765d9f8 Add terrain brush core and geometry implementations 2026-04-18 20:23:33 +02:00
6a43793779 Update migrateSceneDocument to handle FOLLOW_ACTOR_PATH_SMOOTH_SCENE_DOCUMENT_VERSION 2026-04-18 20:06:02 +02:00
d0df07acf1 Add FOLLOW_ACTOR_PATH_SMOOTH_SCENE_DOCUMENT_VERSION to tests 2026-04-18 20:06:02 +02:00
3b59f80974 Add integration test for terrain foundation 2026-04-18 20:04:04 +02:00
d3c5c8a221 Add test for framing selected terrain from its authored grid bounds 2026-04-18 20:02:23 +02:00
07b667e3d8 Update scene document JSON tests to include terrains 2026-04-18 20:02:18 +02:00
71abf5bab9 Add tests for terrain commands 2026-04-18 20:02:18 +02:00
5cb7a4482a Add tests for terrain mesh generation 2026-04-18 20:02:18 +02:00
129b688ffc Include terrains object in local draft storage test 2026-04-18 20:01:02 +02:00
98adab49ce Update test fixture with terrains array 2026-04-18 20:01:02 +02:00
5f9e3e71e8 Add return statement in runtime-host.ts 2026-04-18 20:01:02 +02:00
83cc70dcdc Remove unused import in viewport-host.ts 2026-04-18 20:01:02 +02:00
dd89ed3e18 auto-git:
[change] src/runtime-three/runtime-host.ts
2026-04-18 19:59:52 +02:00
4afef32d5d auto-git:
[change] src/document/migrate-scene-document.ts
2026-04-18 19:59:52 +02:00
defaa4adf0 Add terrain commands and selection logic 2026-04-18 19:59:33 +02:00
e89e9c3008 Remove unused keyboard event handlers and update method in runtime-host.ts 2026-04-18 19:58:52 +02:00
9b9a1801b4 Extend collision bounds calculation and add water contact patch collection 2026-04-18 19:58:23 +02:00
44ef7899da Add 'enabled' property to terrain bounds calculation 2026-04-18 19:57:11 +02:00
6b1330b15a Handle 'terrains' in resolveTransformTarget with a message 2026-04-18 19:56:02 +02:00
ce7ef76a6a Exclude 'terrains' from duplication and add specific handling 2026-04-18 19:56:02 +02:00
cd5d9b2ffe Include 'terrains' in selectionCanBeDuplicated 2026-04-18 19:56:02 +02:00
2076ab7c55 Add method to clear terrain meshes in RuntimeHost 2026-04-18 19:54:59 +02:00
597cbefc97 Apply advanced rendering shadow flags to terrain meshes and update player input handling 2026-04-18 19:54:41 +02:00