diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-04 02:49:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-04 03:19:09 +0300 |
commit | 3f90c11621845424a0b61d293f71ab179e88f56b (patch) | |
tree | 8afc00668a19d63d493c1327aa633636f47469e0 | |
parent | ebd2aa789e409258cb96e30c9c42dcdea360924f (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.c | 2 |
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 { |