diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-25 16:02:20 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-25 16:03:06 +0300 |
commit | 0b9a65b2ae218e3b3f8f56d22673c58255b8a92f (patch) | |
tree | d924fed7cfd39f7d4068487663f374f9aed91b09 /source/blender/depsgraph | |
parent | a80c1e50bc7f57bc4d4c41bc51ac92d1d4c39030 (diff) |
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.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_build_relations.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cc b/source/blender/depsgraph/intern/depsgraph_build_relations.cc index fdaee42f316..a3319e7bb15 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; } |