diff options
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index b1c66a65c35..cf71e18472c 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -1757,6 +1757,9 @@ static double ui_get_but_scale_unit(uiBut *but, double value) else if (unit_type == PROP_UNIT_VOLUME) { return value * pow(unit->scale_length, 3); } + else if (unit_type == PROP_UNIT_MASS) { + return value * pow(unit->scale_length, 3); + } else if (unit_type == PROP_UNIT_TIME) { /* WARNING - using evil_C :| */ Scene *scene = CTX_data_scene(but->block->evil_C); return FRA2TIME(value); |