Fix invalid comparison checking button unit type
Checking button unit type was length for proportional multi-button adjustment wasn't working.
This commit is contained in:
parent
28f667c7c4
commit
30bfa991f8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue