diff options
author | Julian Eisel <julian@blender.org> | 2020-09-04 20:26:12 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-09-04 22:26:30 +0300 |
commit | 47881791be0538f9558b2ef091e1761187df250d (patch) | |
tree | 11590c150195ee160e255722bb7ffe00825b9ca4 /source/blender/editors/interface/interface_query.c | |
parent | 120f4507f640cf8b356476a9e82e6301981cfcfd (diff) |
UI Code Quality: Store curve-button gradient type in derived struct
We want to move away from using `uiBut.a1`/`a2`, which is a hard to
reason about design.
Part of T74432.
Also correct comment.
Diffstat (limited to 'source/blender/editors/interface/interface_query.c')
-rw-r--r-- | source/blender/editors/interface/interface_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_query.c b/source/blender/editors/interface/interface_query.c index 9dcfe8c872b..4ad5d85e959 100644 --- a/source/blender/editors/interface/interface_query.c +++ b/source/blender/editors/interface/interface_query.c @@ -427,9 +427,9 @@ bool ui_but_is_cursor_warp(const uiBut *but) if (ELEM(but->type, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, - UI_BTYPE_HSVCIRCLE, UI_BTYPE_TRACK_PREVIEW, UI_BTYPE_HSVCUBE, + UI_BTYPE_HSVCIRCLE, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE)) { return true; |