Go to file
Bastien Montagne 8535b9bd15 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)!
This would break if someone uses py ops with lower precedence than '+' (like bitwise
operations, and comparison), but these are not expected usecase here anyway.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D340
2014-08-20 12:12:03 +02:00
build_files Install_deps: Better handling of 'check installed' in Debian, and fix jack2d check. 2014-08-18 15:07:52 +02:00
doc API Docs: typos 2014-08-06 02:12:52 +10:00
extern Fix T41360: Crash on Boolean Modifier 2014-08-11 20:55:52 +06:00
intern Fix T40962: Ashikhmen Shirley shader fireflies 2014-08-19 20:58:58 +06:00
release Fix T41499: Can't use Deselect/Select All tool while in Texture Paint mode 2014-08-20 14:01:19 +06:00
scons@1ec93106c4 Fix T40606: Blender 2.71RC1 for Windows uses too old blender.mo file in Japanese 2014-06-16 14:04:49 +06:00
source Fix T38722: Adding units in Imperial setting results in inconsistent values 2014-08-20 12:12:03 +02:00
tests Fix T38722: Adding units in Imperial setting results in inconsistent values 2014-08-20 12:12:03 +02:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Revert "ignore conflict files" 2014-08-08 06:00:49 +10:00
.gitmodules Initialize git submodules for addons, locales and scons 2013-11-15 12:19:08 +06:00
CMakeLists.txt Fix linking error on VC 2013: Update lib names for openexr 2014-08-13 09:14:05 +02:00
COPYING
GNUmakefile Source Checkers: Include intern/ libs we maintain in spelling checks 2014-07-25 15:17:29 +10:00
SConstruct OSX/Scons: make sure BF_OSL implies BF_LLVM 2014-08-14 12:16:11 +02:00