Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-09-04 20:26:12 +0300
committerJulian Eisel <julian@blender.org>2020-09-04 22:26:30 +0300
commit47881791be0538f9558b2ef091e1761187df250d (patch)
tree11590c150195ee160e255722bb7ffe00825b9ca4 /source/blender/editors/interface/interface_query.c
parent120f4507f640cf8b356476a9e82e6301981cfcfd (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.c2
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;