-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bitECS: Fix rotation with Object menu
This PR fixes roation operation with the Object menu. **Problem** Rotation focus is not released even if releasing mouse click if you release the space bar earlier than mouse click release. The root issue is heldExitQuery for handling mouse click release is not called if ObjectMenu.targetRef[menu] is not set. Then if ObjectMenu.targetRef[menu] is cleared by releasing the space bar earlier than releasing mouse click, heldExitQuery won't be called. **Solution** Always call heldExitQuery. **Changes** - Always call heldExitQuery - Save rotation/scale taget entity id when the operaton starts because rotation/scale are operated by dragging so that the operations can continue even if the cursor hovers off the target entity - Use the saved target entity id when the operation ends
- Loading branch information
Showing
1 changed file
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters