diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-23 20:14:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-23 20:14:03 +0300 |
commit | 68b49aa981e146d7a7afde3e83305445bcc5ca3e (patch) | |
tree | 50f2df31057a2a902c02380a8dd423f6db9d0a73 /source/blender/blenkernel/intern/unit.c | |
parent | 96dafef22810112cf6619c34fef7f0d4cc09facf (diff) |
use unit system for the grid floor (was only ortho before).
Diffstat (limited to 'source/blender/blenkernel/intern/unit.c')
-rw-r--r-- | source/blender/blenkernel/intern/unit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c index 54ecef75108..69a43ac60f0 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -755,6 +755,11 @@ void bUnit_GetSystem(void **usys_pt, int *len, int system, int type) *len= usys->length; } +int bUnit_GetBaseUnit(void *usys_pt) +{ + return ((bUnitCollection *)usys_pt)->base_unit; +} + const char *bUnit_GetName(void *usys_pt, int index) { return ((bUnitCollection *)usys_pt)->units[index].name; |