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 | |
parent | 96dafef22810112cf6619c34fef7f0d4cc09facf (diff) |
use unit system for the grid floor (was only ortho before).
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_unit.h | 1 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/unit.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_unit.h b/source/blender/blenkernel/BKE_unit.h index 1b53752aae0..f8ffd1cd188 100644 --- a/source/blender/blenkernel/BKE_unit.h +++ b/source/blender/blenkernel/BKE_unit.h @@ -52,6 +52,7 @@ int bUnit_IsValid(int system, int type); //double bUnit_Iter(void **unit, char **name, int system, int type); void bUnit_GetSystem(void **usys_pt, int *len, int system, int type); +int bUnit_GetBaseUnit(void *usys_pt); const char* bUnit_GetName(void *usys_pt, int index); const char* bUnit_GetNameDisplay(void *usys_pt, int index); double bUnit_GetScaler(void *usys_pt, int index); 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; |