From 84a0a6d16c85105cf755141c4d49afc52eb157e3 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 10 Jun 2020 14:12:24 +0200 Subject: BLI: update behavior of Map.lookup_or_add Previously, this function would expect a callback function as parameter. This behavior is now in Map.lookup_or_add_cb. The new version just takes the key and value directly. --- source/blender/depsgraph/intern/depsgraph_physics.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/depsgraph/intern/depsgraph_physics.cc') diff --git a/source/blender/depsgraph/intern/depsgraph_physics.cc b/source/blender/depsgraph/intern/depsgraph_physics.cc index 44c3d23ace4..ad67117fda3 100644 --- a/source/blender/depsgraph/intern/depsgraph_physics.cc +++ b/source/blender/depsgraph/intern/depsgraph_physics.cc @@ -167,7 +167,7 @@ ListBase *build_effector_relations(Depsgraph *graph, Collection *collection) graph->physics_relations[DEG_PHYSICS_EFFECTOR] = new Map(); hash = graph->physics_relations[DEG_PHYSICS_EFFECTOR]; } - return hash->lookup_or_add(&collection->id, [&]() { + return hash->lookup_or_add_cb(&collection->id, [&]() { ::Depsgraph *depsgraph = reinterpret_cast<::Depsgraph *>(graph); return BKE_effector_relations_create(depsgraph, graph->view_layer, collection); }); @@ -183,7 +183,7 @@ ListBase *build_collision_relations(Depsgraph *graph, graph->physics_relations[type] = new Map(); hash = graph->physics_relations[type]; } - return hash->lookup_or_add(&collection->id, [&]() { + return hash->lookup_or_add_cb(&collection->id, [&]() { ::Depsgraph *depsgraph = reinterpret_cast<::Depsgraph *>(graph); return BKE_collision_relations_create(depsgraph, collection, modifier_type); }); -- cgit v1.2.3