forked from bartvdbraak/blender
patch [#23796] Full support for unit buttons: area, volume, mass, velocity and acceleration
from Lorenzo Tozzi (oni_niubbo), multiple patches: better_split.diff
This commit is contained in:
parent
b0f36f0317
commit
e4f3a0efa6
@ -396,7 +396,8 @@ void bUnit_AsString(char *str, int len_max, double value, int prec, int system,
|
||||
if(usys==NULL || usys->units[0].name==NULL)
|
||||
usys= &buDummyCollecton;
|
||||
|
||||
if(split) {
|
||||
/* split output makes sense only for length, mass and time */
|
||||
if(split && (type==B_UNIT_LENGTH || type==B_UNIT_MASS || type==B_UNIT_TIME)) {
|
||||
int i;
|
||||
bUnitDef *unit_a, *unit_b;
|
||||
double value_a, value_b;
|
||||
|
Loading…
Reference in New Issue
Block a user