[Bf-blender-cvs] [94839974722] master: Depsgraph: Fix wrong ID filtering

Sergey Sharybin noreply at git.blender.org
Mon Jan 6 09:25:00 CET 2020


Commit: 948399747226e78b82ba1d5617bcd3b48e874241
Author: Sergey Sharybin
Date:   Mon Jan 6 09:23:20 2020 +0100
Branches: master
https://developer.blender.org/rB948399747226e78b82ba1d5617bcd3b48e874241

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!

===================================================================

M	source/blender/depsgraph/intern/depsgraph_build.cc

===================================================================

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]);
     }
   }



More information about the Bf-blender-cvs mailing list