From 68c00e6f8f2612d76f95fb7744cb9cfbfcfacdf8 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Fri, 7 Aug 2020 15:02:07 +0200 Subject: UI Code Quality: Use derived struct for color buttons For the main rationale behind this design, see 03b122e2a18df. Further, this removes users of `uiBut.a1`/`uiBut.a2`, which is a very ugly design choice (hard to reason about). Part of Part of T74432. --- source/blender/editors/interface/interface_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/interface/interface_utils.c') diff --git a/source/blender/editors/interface/interface_utils.c b/source/blender/editors/interface/interface_utils.c index 208fd7136da..4a1c7be918e 100644 --- a/source/blender/editors/interface/interface_utils.c +++ b/source/blender/editors/interface/interface_utils.c @@ -148,7 +148,7 @@ uiBut *uiDefAutoButR(uiBlock *block, if (RNA_property_array_check(prop) && index == -1) { if (ELEM(RNA_property_subtype(prop), PROP_COLOR, PROP_COLOR_GAMMA)) { but = uiDefButR_prop( - block, UI_BTYPE_COLOR, 0, name, x1, y1, x2, y2, ptr, prop, -1, 0, 0, -1, -1, NULL); + block, UI_BTYPE_COLOR, 0, name, x1, y1, x2, y2, ptr, prop, -1, 0, 0, 0, 0, NULL); } else { return NULL; -- cgit v1.2.3