[Bf-blender-cvs] [6a44865] blender-v2.72-release: Fix T42258: Drivers: `dimensions.x` is always invalid, but `dimensions[0]` works
Bastien Montagne
noreply at git.blender.org
Tue Oct 21 12:14:33 CEST 2014
Commit: 6a44865d2e46cb74b3ed4399137ce66bb84e3e90
Author: Bastien Montagne
Date: Thu Oct 16 16:30:52 2014 +0200
Branches: blender-v2.72-release
https://developer.blender.org/rB6a44865d2e46cb74b3ed4399137ce66bb84e3e90
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