Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-01-06 11:23:20 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2020-01-06 11:23:20 +0300
commit948399747226e78b82ba1d5617bcd3b48e874241 (patch)
treed05d1d6cf957ad718114f4cf051ad0de4d8feafc /source/blender/depsgraph
parente993667a46c2fa1c6f6f3dc609b334448ab347d8 (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')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_build.cc2
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]);
}
}