diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-01-06 11:23:20 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-01-06 11:23:20 +0300 |
commit | 948399747226e78b82ba1d5617bcd3b48e874241 (patch) | |
tree | d05d1d6cf957ad718114f4cf051ad0de4d8feafc /source/blender/depsgraph/intern/depsgraph_build.cc | |
parent | e993667a46c2fa1c6f6f3dc609b334448ab347d8 (diff) |
Depsgraph: Fix wrong ID filtering
Was only using first ID instead of all of them.
Might have been causing issues when updating motion paths of
multiple objects.
Spotted by Jack C, thanks!
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_build.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc index f67ab381c79..0acf777e2f0 100644 --- a/source/blender/depsgraph/intern/depsgraph_build.cc +++ b/source/blender/depsgraph/intern/depsgraph_build.cc @@ -345,7 +345,7 @@ class DepsgraphFromIDsFilter { DepsgraphFromIDsFilter(ID **ids, const int num_ids) { for (int i = 0; i < num_ids; ++i) { - ids_.insert(ids[0]); + ids_.insert(ids[i]); } } |