From c4ce26c9061c2fcb231fe0570251c3b02d0caa5f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 10 Apr 2012 08:33:30 +0000 Subject: 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. --- source/blender/makesrna/RNA_types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesrna/RNA_types.h') 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! -- cgit v1.2.3