Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-02-04 02:49:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-04 03:19:09 +0300
commit3f90c11621845424a0b61d293f71ab179e88f56b (patch)
tree8afc00668a19d63d493c1327aa633636f47469e0
parentebd2aa789e409258cb96e30c9c42dcdea360924f (diff)
Fix T85318: Driver variable don't resolve collection indices
The driver variable `splines[0]` (on a curve) behaved as if the path was `splines`. Resolve pointers was well as properties as it's supported by the caller. Error in original commit that added property support 82b0a9e36900c8aeb374078bd4cb3a7d7f8295e6.
-rw-r--r--source/blender/blenkernel/intern/fcurve_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/fcurve_driver.c b/source/blender/blenkernel/intern/fcurve_driver.c
index 1bce9ad8e35..d1bf523acef 100644
--- a/source/blender/blenkernel/intern/fcurve_driver.c
+++ b/source/blender/blenkernel/intern/fcurve_driver.c
@@ -240,7 +240,7 @@ bool driver_get_variable_property(ChannelDriver *driver,
ptr = PointerRNA_NULL;
prop = NULL; /* OK. */
}
- else if (RNA_path_resolve_property_full(&id_ptr, dtar->rna_path, &ptr, &prop, &index)) {
+ else if (RNA_path_resolve_full(&id_ptr, dtar->rna_path, &ptr, &prop, &index)) {
/* OK. */
}
else {