fix(editor): strip placement metadata on commit

This commit is contained in:
Aymeric Rabot
2026-06-08 02:12:01 -04:00
parent bd9e97e224
commit 73cd6e8614
3 changed files with 17 additions and 5 deletions
+2
View File
@@ -17,6 +17,7 @@ import {
EDITOR_LAYER,
getSideFromNormal,
isValidWallSideFace,
stripPlacementMetadataFlags,
triggerSFX,
useEditor,
} from '@pascal-app/editor'
@@ -275,6 +276,7 @@ const MoveDoorTool: React.FC<{ node: DoorNode }> = ({ node: movingDoorNode }) =>
const cloned = structuredClone(movingDoorNode) as any
delete cloned.id
cloned.metadata = stripPlacementMetadataFlags(cloned.metadata)
const node = DoorNode.parse({
...cloned,
position: [target.clampedX, target.clampedY, 0],