Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2018-11-15 16:39:52 +0300
committerJacques Lucke <mail@jlucke.com>2018-11-15 16:40:22 +0300
commitbdca86395697a0deed05948cda1ca612448e63cb (patch)
tree7b0852e1bbdf2a2a5b64925be0dda052edcb0815 /source/blender/blenkernel/BKE_unit.h
parentcdfc128267c346c95bb72dbade0c29a5c4dd44a0 (diff)
Units: Identifiers in Python
I only specified the identifiers for the units that are actually accessible for now. This way we can postpone some decisions for now. E.g. if it should be `METER_SQUARE`, `SQUARE_METER`, `METER_SQ`, ... Reviewers: brecht Differential Revision: https://developer.blender.org/D3945
Diffstat (limited to 'source/blender/blenkernel/BKE_unit.h')
-rw-r--r--source/blender/blenkernel/BKE_unit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_unit.h b/source/blender/blenkernel/BKE_unit.h
index bb7fb006038..59475d3098a 100644
--- a/source/blender/blenkernel/BKE_unit.h
+++ b/source/blender/blenkernel/BKE_unit.h
@@ -68,6 +68,7 @@ int bUnit_GetBaseUnit(const void *usys_pt);
int bUnit_GetBaseUnitOfType(int system, int type);
const char *bUnit_GetName(const void *usys_pt, int index);
const char *bUnit_GetNameDisplay(const void *usys_pt, int index);
+const char *bUnit_GetIdentifier(const void *usys_pt, int index);
double bUnit_GetScaler(const void *usys_pt, int index);
bool bUnit_IsSuppressed(const void *usys_pt, int index);