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 committed by Campbell Barton
parent 73f5a41589
commit 6a44865d2e
Notes: blender-bot 2023-02-14 09:56:33 +01: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) {