user interface units, off by default.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 11 Aug 2009 18:53:01 +0000 (18:53 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 11 Aug 2009 18:53:01 +0000 (18:53 +0000)
commitb2a77852ff99f1a8da8225239de68edc2aead6e2
treea9fdacedc04ae75251152b1300173ef64ca841d7
parent3ba949b0505d725a464735e56df05a97eefffdfa
user interface units, off by default.

- currently only distances work.
- user preferences, edit section to set the units and scale.
- option to display pairs (nicer for imperial display?)
- support for evaluating multiple comma separated values eg: 2',11" ..or.. 5ft, 4mil
- comma separated expressions/values accumulate 1+1,2**3,4cm/3
- attempted fast conversion from a value to a string so button drawing isn't too slow.

* imperial long/short *
- mile, mi
- yard, yd
- foot, '
- inch, "
- thou, mil

* metric long/short *
kilometer, km
meter, m
centimeter, cm
millimeter, mm
micrometer, um
nanometer, nm
picometer, pm
16 files changed:
release/ui/bpy_ops.py
release/ui/space_info.py
source/blender/blenkernel/BKE_unit.h [new file with mode: 0644]
source/blender/blenkernel/intern/unit.c [new file with mode: 0644]
source/blender/editors/interface/interface.c
source/blender/makesdna/DNA_scene_types.h
source/blender/makesdna/DNA_userdef_types.h
source/blender/makesrna/intern/rna_lamp.c
source/blender/makesrna/intern/rna_material.c
source/blender/makesrna/intern/rna_meta.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_scene.c
source/blender/makesrna/intern/rna_space.c
source/blender/makesrna/intern/rna_userdef.c
source/blender/makesrna/intern/rna_world.c
source/blender/python/intern/bpy_interface.c