diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-11-22 18:46:15 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-11-22 18:54:43 +0300 |
commit | b037ba2665f4b08d91e0d7d1b350c8bb562ca320 (patch) | |
tree | b9957cc53e449b599a4aee110e845a032aa5a46f /source/blender/makesdna/DNA_space_types.h | |
parent | 177dfc6384b926dd19e3b7e98a995ccb4da9167c (diff) |
UI: Changes to Graph Editor selection and transform
When introducing "drag-all-selected" support all over Blender, we
figured this wouldn't work well with the Graph Editor
selection/transform behavior.
Hence, William and I worked on the following changes, although we used
this chance to improve the behavior in general too.
For more info see T70634.
* Handles now always move with the key, regardless if they are selected
or not.
* Selecting the key doesn't select the handles anymore, their selection
is separate.
* Multiple keys and handles can now be dragged.
* Dragging a handle moves all selected handles **on the same side**.
* Tweak-dragging any handle can never affect any keyframe location,
only handles.
* G/R/S should behave as before.
* Changing the handle type with a key selected always applies the change
to both handles.
* Box selection with Ctrl+Drag now allows deselecting handles (used to
act on entire triple only).
* Box selection //Include Handles// option now only acts on visible
handles, wasn't the case with Only Selected Keyframes Handles enabled.
* Box selection //Include Handles// is now enabled by default in all
bundled keymaps.
The changes have been tested for some days by the animators here in the
Blender Animation Studio. Some changes are based on their feedback.
Also, this improves/adds comments for related code.
Differential Revision: https://developer.blender.org/D6235
Reviewed by: Sybren Stüvel, William Reynish
Diffstat (limited to 'source/blender/makesdna/DNA_space_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 8670d8f6633..576a0a85b6d 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -483,6 +483,13 @@ typedef enum eGraphEdit_Runtime_Flag { SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC = (1 << 0), /** Temporary flag to force fcurves to recalculate colors. */ SIPO_RUNTIME_FLAG_NEED_CHAN_SYNC_COLOR = (1 << 1), + + /** + * These flags are for the mouse-select code to communicate with the transform code. Click + * dragging (tweaking) a handle sets the according left/right flag which transform code uses then + * to limit translation to this side. */ + SIPO_RUNTIME_FLAG_TWEAK_HANDLES_LEFT = (1 << 2), + SIPO_RUNTIME_FLAG_TWEAK_HANDLES_RIGHT = (1 << 3), } eGraphEdit_Runtime_Flag; /** \} */ |