diff options
author | Hans Goudey <HooglyBoogly> | 2020-10-07 13:46:58 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-10-07 13:46:58 +0300 |
commit | e584bc320a9cf6be7a16fc159bb26b5ced5572fb (patch) | |
tree | 6275e5310ce070d469095dc79da26340423a66f8 /source/blender/editors/interface/resources.c | |
parent | 4bb15c8eecbf8186a8948ced9349d54c1a8c5e33 (diff) |
Fix T76595: Indicate the Active Keyframe in Graph Editortemp-fcurve-active-keyframe-D7737
Currently there is a panel that says "Active Keyframe" for numerically editing one keyframe's values, but in the code there is no concept of the "active keyframe."
This patch adds an "active keyframe index" to each FCurve, and displays it with a theme color for the active vertex (which didn't exist before) if the FCurve is active.
{F8536092 size=full}
The active keyframe is not currently set for select operations other than basic click-select, which mirrors the behavior in the 3D view.
Reviewed By: Severin, looch
Maniphest Tasks: T76595
Differential Revision: https://developer.blender.org/D7737
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r-- | source/blender/editors/interface/resources.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index ec6f99f167d..e55f84916b3 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -362,6 +362,9 @@ const uchar *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colorid) case TH_VERTEX_SELECT: cp = ts->vertex_select; break; + case TH_VERTEX_ACTIVE: + cp = ts->vertex_active; + break; case TH_VERTEX_BEVEL: cp = ts->vertex_bevel; break; |