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:
authorCampbell Barton <ideasman42@gmail.com>2019-01-05 12:09:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-05 12:09:25 +0300
commit95736683a96d33a8a7220788502250fa9e109132 (patch)
tree5969ed8914b836b80141772620ec639d6199cd71 /source/blender/editors/interface
parent16f49f81dd115ff5323a88309acff194be12609d (diff)
UI: length now scales proportionally w/ multi-but
Use for object dimensions.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_handlers.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 1d8e452ba45..91b9ba03fa2 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -1141,11 +1141,14 @@ static void ui_multibut_states_create(uiBut *but_active, uiHandleButtonData *dat
/* edit buttons proportionally to eachother
* note: if we mix buttons which are proportional and others which are not,
* this may work a bit strangely */
- if (but_active->rnaprop) {
- if ((data->origvalue != 0.0) && (RNA_property_flag(but_active->rnaprop) & PROP_PROPORTIONAL)) {
+ if ((but_active->rnaprop && (RNA_property_flag(but_active->rnaprop) & PROP_PROPORTIONAL)) ||
+ ELEM(but->unit_type, PROP_UNIT_LENGTH))
+ {
+ if (data->origvalue != 0.0) {
data->multi_data.is_proportional = true;
}
}
+
}
static void ui_multibut_states_apply(bContext *C, uiHandleButtonData *data, uiBlock *block)