From 3f90c11621845424a0b61d293f71ab179e88f56b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 4 Feb 2021 10:49:44 +1100 Subject: 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. --- source/blender/blenkernel/intern/fcurve_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3