Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
explicitly snapshot after mouse button release on translate/rotate/sc…
Browse files Browse the repository at this point in the history
…ale gizmos so that snapshot state is accurate
  • Loading branch information
anselm committed Oct 24, 2023
1 parent 658b83e commit 0ca06c8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/editor/src/systems/EditorControlSystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,17 @@ const execute = () => {
EditorControlFunctions.replaceSelection([])
}
}

gizmoObj.deselectAxis()
dragging = false
}

const nodes = getEntityNodeArrayFromEntities(getState(SelectionState).selectedEntities)
for (let i = 0; i < nodes.length; i++) {
const entity = nodes[i]
if (typeof entity === 'string') continue
//const entityUUID = getComponent(entity, UUIDComponent)
EditorControlFunctions.commitTransformSave(entity)
}
}

if (editorHelperState.isFlyModeEnabled) return
Expand Down

0 comments on commit 0ca06c8

Please sign in to comment.