From bdca86395697a0deed05948cda1ca612448e63cb Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Thu, 15 Nov 2018 14:39:52 +0100 Subject: 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 --- source/blender/blenkernel/BKE_unit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/BKE_unit.h') 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); -- cgit v1.2.3