Update AGENTS.md and ViewportCanvas.tsx for project package details

This commit is contained in:
2026-03-31 17:45:06 +02:00
parent 54c5e4c5d2
commit d0460613b0
2 changed files with 12 additions and 7 deletions

View File

@@ -89,14 +89,14 @@ export function ViewportCanvas({
hostRef.current?.updateWorld(world);
}, [world]);
useEffect(() => {
hostRef.current?.updateDocument(sceneDocument, selection);
}, [sceneDocument, selection]);
useEffect(() => {
hostRef.current?.updateAssets(projectAssets, loadedModelAssets);
}, [projectAssets, loadedModelAssets]);
useEffect(() => {
hostRef.current?.updateDocument(sceneDocument, selection);
}, [sceneDocument, selection]);
useEffect(() => {
hostRef.current?.setBrushSelectionChangeHandler(onSelectionChange);
}, [onSelectionChange]);