diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-04-20 04:54:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-20 04:54:47 +0300 |
commit | 30bfa991f87b9ead6d4f8f9a87322c4aeb9e99d4 (patch) | |
tree | 1732138e8d1a0eb9b7f9e9e90b3efcabb6cca4e8 /source/blender/editors/interface/interface_handlers.c | |
parent | 28f667c7c46a1855146bba9e555b20c9993d7316 (diff) |
Fix invalid comparison checking button unit type
Checking button unit type was length for proportional
multi-button adjustment wasn't working.
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index d2ae044ea46..b392c9f6768 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -1282,7 +1282,7 @@ static void ui_multibut_states_create(uiBut *but_active, uiHandleButtonData *dat * note: if we mix buttons which are proportional and others which are not, * this may work a bit strangely */ if ((but_active->rnaprop && (RNA_property_flag(but_active->rnaprop) & PROP_PROPORTIONAL)) || - ELEM(but_active->unit_type, PROP_UNIT_LENGTH)) { + ELEM(but_active->unit_type, RNA_SUBTYPE_UNIT_VALUE(PROP_UNIT_LENGTH))) { if (data->origvalue != 0.0) { data->multi_data.is_proportional = true; } |