From 948399747226e78b82ba1d5617bcd3b48e874241 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 6 Jan 2020 09:23:20 +0100 Subject: 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! --- source/blender/depsgraph/intern/depsgraph_build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/depsgraph') 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]); } } -- cgit v1.2.3