Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-06-01 15:22:27 +0300
committerHans Goudey <h.goudey@me.com>2020-06-01 15:22:27 +0300
commit45dbc38a8b156a6e704575f4935c7f3f9cf96e5d (patch)
treee9987512a5e88c075a2db210b392b287f0a44ec7 /release
parent8d670546f916596977bffbc614c58bddf2f2b707 (diff)
Fix T74552: Distribute negatives in number input
This applies a relatively simple solution for fixing some unintuitive cases in unit handling. Currently entering -1m50cm evaluates to -0.5m, and similarly 1'6" evaulates to just half a foot. So effectively there's an implied + just between the numbers, which is quite confusing. This works by adding parentheses so the negative distributes to the block of values before the next operator. For example: | Before | After | | `-1m50cm + 1m -2m50cm` | `-(1m50cm) + 1m -(2m50cm)` | | `-4m + 0.5 / -1.1` | `-(4m) + 0.5 / -(1.1)` | | `-1'6"` | `-(1'6")` | | `-1e-2cm` | `-(1e-2cm) ` | Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D7813
Diffstat (limited to 'release')
0 files changed, 0 insertions, 0 deletions