Blender Git Loki
Git Commits -> Revision 0e3fa0b
Revision 0e3fa0b by Bastien Montagne (master) August 26, 2014, 10:31 (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: 0e3fa0b7618fa86e97c5f46ae7208c082fd26eb7
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)
/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)