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.
This commit is contained in:
Bastien Montagne
2014-10-16 16:30:52 +02:00
parent 61d1477415
commit d30abdf3ec

View File

@@ -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) {