[Bf-blender-cvs] [d30abdf] master: Fix T42258: Drivers: `dimensions.x` is always invalid, but `dimensions[0]` works
Bastien Montagne
noreply at git.blender.org
Thu Oct 16 16:32:33 CEST 2014
Commit: d30abdf3ec28b8e66c86cd37138efc2270375596
Author: Bastien Montagne
Date: Thu Oct 16 16:30:52 2014 +0200
Branches: master
https://developer.blender.org/rBd30abdf3ec28b8e66c86cd37138efc2270375596
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.
===================================================================
M source/blender/makesrna/intern/rna_access.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 34e7801..806b9d0 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) {
More information about the Bf-blender-cvs
mailing list