[Bf-blender-cvs] [0b9a65b] master: Fix T44709: New Depsgraph not evaluating driver interactively
Sergey Sharybin
noreply at git.blender.org
Mon May 25 15:03:54 CEST 2015
Commit: 0b9a65b2ae218e3b3f8f56d22673c58255b8a92f
Author: Sergey Sharybin
Date: Mon May 25 18:02:20 2015 +0500
Branches: master
https://developer.blender.org/rB0b9a65b2ae218e3b3f8f56d22673c58255b8a92f
Fix T44709: New Depsgraph not evaluating driver interactively
Issue was caused by drivers which uses component of an array as a target,
this was not handled properly in the RNA path key.
===================================================================
M source/blender/depsgraph/intern/depsgraph_build_relations.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cc b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
index fdaee42..a3319e7 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cc
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
@@ -115,7 +115,8 @@ RNAPathKey::RNAPathKey(ID *id, const string &path) :
PointerRNA id_ptr;
RNA_id_pointer_create(id, &id_ptr);
/* try to resolve path... */
- if (!RNA_path_resolve(&id_ptr, path.c_str(), &this->ptr, &this->prop)) {
+ int index;
+ if (!RNA_path_resolve_full(&id_ptr, path.c_str(), &this->ptr, &this->prop, &index)) {
this->ptr = PointerRNA_NULL;
this->prop = NULL;
}
More information about the Bf-blender-cvs
mailing list