From d30abdf3ec28b8e66c86cd37138efc2270375596 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 16 Oct 2014 16:30:52 +0200 Subject: Fix T42258: Drivers: `dimensions.x` is always invalid, but `dimensions[0]` works 'PROP_XYZ_LENGTH' subtype was missing from list of valid '.x/y/z/w' ones. --- source/blender/makesrna/intern/rna_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 34e78018b03..806b9d0d5ad 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -903,7 +903,7 @@ int RNA_property_array_item_index(PropertyRNA *prop, char name) return 3; } } - else if (ELEM(subtype, PROP_TRANSLATION, PROP_DIRECTION, PROP_XYZ, + else if (ELEM(subtype, PROP_TRANSLATION, PROP_DIRECTION, PROP_XYZ, PROP_XYZ_LENGTH, PROP_EULER, PROP_VELOCITY, PROP_ACCELERATION)) { switch (name) { -- cgit v1.2.3