From 911078aaaddfab72eeea564f671f7e1a1c392300 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 11 Aug 2009 11:50:40 +0000 Subject: fix for using subtype units that are not defined as a part of types. eg. prop= RNA_def_property(srna, "cursor_location", PROP_FLOAT, PROP_XYZ|PROP_UNIT_LENGTH); --- source/blender/makesrna/RNA_types.h | 1 + 1 file changed, 1 insertion(+) (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 0a641ecebe9..4833640a04b 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -66,6 +66,7 @@ typedef enum PropertyType { PROP_COLLECTION = 6 } PropertyType; +/* also update rna_property_subtype_unit when you change this */ typedef enum PropertyUnit { PROP_UNIT_NONE = (0<<16), PROP_UNIT_LENGTH = (1<<16), /* m */ -- cgit v1.2.3