Blender Git Commit Log
Git Commits -> Revision 47983cc
Revision 47983cc by Bastien Montagne (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 |
Commit Details:
Full Hash: 47983ccec5bad1cceb34183aa00fcf31d500649e
Parent Commit: 630f343
Lines Changed: +56, -38