Blender Git Commit Log

Git Commits -> Revision 01537eb

Revision 01537eb by Bastien Montagne (testbuild)
August 26, 2014, 10:11 (GMT)
Fix T41590: When scene scale is not 1.0, and units are "None," Blender assumes translations are in meters.

Turned out there were several issues in handling of scale parameter by numinput.
Fixed that by factorizing more some code in common with 'usual' numbuttons eval code
(new `bUnit_getScaleUnit()` helper will return valid scaled value, depending on
given system and type).

Now, numinput behaves as expected - using default unit amended by scale in case no unit is given
(i.e. entering '20' with a scale of 0.01 will give you 20cm, and '20cm' as well!).

Commit Details:

Full Hash: 01537ebc8433799f4e74356ae398cd7bb0fd6519
Parent Commit: 6002487
Lines Changed: +73, -55

10 Modified Paths:

/source/blender/blenkernel/BKE_unit.h (+7, -0) (Diff)
/source/blender/blenkernel/intern/unit.c (+25, -0) (Diff)
/source/blender/editors/animation/anim_markers.c (+1, -1) (Diff)
/source/blender/editors/include/ED_numinput.h (+3, -1) (Diff)
/source/blender/editors/interface/interface.c (+3, -17) (Diff)
/source/blender/editors/mesh/editmesh_bevel.c (+1, -1) (Diff)
/source/blender/editors/mesh/editmesh_inset.c (+1, -1) (Diff)
/source/blender/editors/mesh/editmesh_loopcut.c (+1, -1) (Diff)
/source/blender/editors/transform/transform.c (+24, -24) (Diff)
/source/blender/editors/util/numinput.c (+7, -9) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021