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:
authorCampbell Barton <ideasman42@gmail.com>2012-04-10 12:33:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-10 12:33:30 +0400
commitc4ce26c9061c2fcb231fe0570251c3b02d0caa5f (patch)
tree404d2dc3a657b69cf96305124ff0b8fd713f1549 /source/blender/makesrna/RNA_types.h
parent1f3e453509e6cb886d0fe5e4cbe1f266f21167ab (diff)
Address [#30842] Blenders Measurement Units set to Metric, makes some Precision Flaws.
use the same precision for location all over (2-5 was used), use define as 5. also disallow boolean to have any subtype besides PROP_LAYER_MEMBER, some booleans had TRANSLATION / XYZ subtypes which don't make sense.
Diffstat (limited to 'source/blender/makesrna/RNA_types.h')
-rw-r--r--source/blender/makesrna/RNA_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h
index 8f3e2c1f104..91f4b4fef7b 100644
--- a/source/blender/makesrna/RNA_types.h
+++ b/source/blender/makesrna/RNA_types.h
@@ -97,6 +97,8 @@ typedef enum PropertyUnit {
#define RNA_ENUM_BITFLAG_SIZE 32
+#define RNA_TRANSLATION_PREC_DEFAULT 5
+
/* also update enums in bpy_props.c when adding items here
* watch it: these values are written to files as part of
* node socket button subtypes!