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/blenkernel/BKE_curve.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/blenkernel/BKE_curve.h')
-rw-r--r-- | source/blender/blenkernel/BKE_curve.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_curve.h b/source/blender/blenkernel/BKE_curve.h index 630c5fa1856..e03780cc027 100644 --- a/source/blender/blenkernel/BKE_curve.h +++ b/source/blender/blenkernel/BKE_curve.h @@ -35,6 +35,8 @@ struct Path; struct TextBox; struct rctf; +typedef int eBezTriple_Flag__Alias; + typedef struct CurveCache { ListBase disp; ListBase bev; @@ -242,6 +244,12 @@ void BKE_nurb_handle_calc(struct BezTriple *bezt, struct BezTriple *next, const bool is_fcurve, const char smoothing); +void BKE_nurb_handle_calc_ex(struct BezTriple *bezt, + struct BezTriple *prev, + struct BezTriple *next, + const eBezTriple_Flag__Alias handle_sel_flag, + const bool is_fcurve, + const char smoothing); void BKE_nurb_handle_calc_simple(struct Nurb *nu, struct BezTriple *bezt); void BKE_nurb_handle_calc_simple_auto(struct Nurb *nu, struct BezTriple *bezt); @@ -249,7 +257,9 @@ void BKE_nurb_handle_smooth_fcurve(struct BezTriple *bezt, int total, bool cycli void BKE_nurb_handles_calc(struct Nurb *nu); void BKE_nurb_handles_autocalc(struct Nurb *nu, int flag); -void BKE_nurb_bezt_handle_test(struct BezTriple *bezt, const bool use_handle); +void BKE_nurb_bezt_handle_test(struct BezTriple *bezt, + const eBezTriple_Flag__Alias sel_flag, + const bool use_handle); void BKE_nurb_handles_test(struct Nurb *nu, const bool use_handles); /* **** Depsgraph evaluation **** */ |