Blender Git Loki

Git Commits -> Revision 47983cc

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:

Commit Details:

Full Hash: 47983ccec5bad1cceb34183aa00fcf31d500649e
Parent Commit: 630f343
Lines Changed: +56, -38

Tehnyt: Miika HämäläinenViimeksi p?ivitetty: 07.11.2014 14:18 MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2020