Blender Git Commits

Blender Git "temp-units-refactor" branch commits.

August 20, 2014, 08:05 (GMT)
Merge branch 'master' into temp-units-refactor
August 14, 2014, 07:08 (GMT)
Fix T38722: Adding units in Imperial setting results in inconsistent values

Now always check for a default unit, and evaluate the whole expression in this "unit space". Not an ideal solution, but should handle most cases nicely (we can't address all possible corner cases anyway).

Note default unit is searched in current string first (bigger unit of current system wins), then in previous string.

Note this also replaces ',' by '+' in default separation between units, helps solving issues with parenthesis (e.g. (1'1")*2.5 would fail in existing code)!

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D340
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021