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
Notes: blender-bot 2023-05-31 04:43:10 +02:00
Referenced by issue #42258, Drivers: `dimensions.x` is always invalid, but `dimensions[0]` works
1 changed files with 1 additions and 1 deletions

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