AnimationTree State Machine node UX improvements #111603
Open
+42
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR includes various UX improvements to how nodes in the AnimationTree's State Machine GUI functions.
Control Dragging
Node dragging via control/command is now properly supported. This feature allows you to click anywhere on a node and begin dragging it, this is primarily useful due to state machine nodes being 90% text.
Prior to this PR, this functionality existed, but the UX on it was lacking.
(note: in both videos I am holding the control key)
Before:
Screencast_20251013_113955.webm
After:
Screencast_20251013_114038.webm
When holding the control key, the cursor IBeam shape and button highlights no longer show, as they aren't functional when control dragging.
You can now re-pick up a node by simply dragging it again, before you had to go through a mandatory deselect
Fixes the selection box appearing despite dragging a node.
Selection Box
Selection box behaviour prior to this PR was weird and inconsistent with how the main blend tree behaved, this PR fixes those issues, and it's behaviour is now consistent with other Node Graph GUIs.
Before:
Screencast_20251013_114233.webm
After:
Screencast_20251013_114302.webm
Shift selection now only removes nodes from the selection.
Control/Command selection now only adds nodes to the selection.
Note: This does remove the ability to invert selection, I don't know if anyone was using this functionality, but given this doesn't exist in the blend tree I found this to be unexpected behaviour.
Additionally, the small flicker that occurs when re-selection happens has been fixed, it's now as smooth as ever.