[Bf-blender-cvs] [3f90c116218] blender-v2.92-release: Fix T85318: Driver variable don't resolve collection indices
Campbell Barton
noreply at git.blender.org
Thu Feb 4 01:22:06 CET 2021
Commit: 3f90c11621845424a0b61d293f71ab179e88f56b
Author: Campbell Barton
Date: Thu Feb 4 10:49:44 2021 +1100
Branches: blender-v2.92-release
https://developer.blender.org/rB3f90c11621845424a0b61d293f71ab179e88f56b
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.
===================================================================
M source/blender/blenkernel/intern/fcurve_driver.c
===================================================================
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 {
More information about the Bf-blender-cvs
mailing list