Page MenuHome

Adding units in Imperial setting results in inconsistent values
Closed, ResolvedPublic


System Information
Windows 7

Blender Version
Broken: 2.69.0 r60995

Short description of error
Using arithmetic in the the properties panel does not function as expected when using units. Not assigning units defaults to feet in the Dimensions section of the Transform section under the Properties panel. However, using arithmetic causes the result to be inconsistent with what is expected.

For example, type in "2" in the X Dimension, and it will result in 2 feet. Typing in "2+2" will result in 4 feet. This is what you'd expect.
However, type in "2+2in" and the result is 6.727 feet. The expected result would be 2(feet) plus two inches (2.167 feet), so this is not what you'd expect.

This affects any work using arithmetic and units.

Exact steps for others to reproduce the error

  1. On the default start-up scene, go to the Scene panel on the Properties panel and set the units to Imperial.
  2. In the 3D View window's property panel, go to Transform, then Dimensions, and type in "4" in the X Dimension. It will result in 4' (four feet).
  3. If you type "2+2 in" into the X Dimension, it will result in 6.728' (over six feet). However, typing "2 ft+2 in" will result in the desired result of 2.167' (two feet and two inches).

Screen Recording of error
Embedded gif

Link to gif
Link to html5

Thank you.

Event Timeline

Jeff Lange (Jefftml) raised the priority of this task from to 90.
Jeff Lange (Jefftml) updated the task description. (Show Details)
Jeff Lange (Jefftml) edited a custom field.
Bastien Montagne (mont29) lowered the priority of this task from 90 to Normal.

I should add that doing the same process in Metric works properly. "2+2cm" is 2.02m. It seems to only effect Imperial units.

Bastien Montagne (mont29) edited this Maniphest Task.
Bastien Montagne (mont29) changed the task status from Resolved to Unknown Status.Aug 14 2014, 10:01 AM