From 34439f05ab68e0f6287c96d7391f38dca8e64205 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sat, 8 May 2021 14:54:48 +0200 Subject: Cleanup: remove use of persistent data handles in geometry nodes Those were mostly just left over from previous work on particle nodes. They solved the problem of keeping a reference to an object over multiple frames and in a cache. Currently, we do not have this problem in geometry nodes, so we can also remove this layer of complexity for now. --- source/blender/nodes/NOD_geometry_exec.hh | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source/blender/nodes/NOD_geometry_exec.hh') diff --git a/source/blender/nodes/NOD_geometry_exec.hh b/source/blender/nodes/NOD_geometry_exec.hh index 83f084c2f25..f341cb28dce 100644 --- a/source/blender/nodes/NOD_geometry_exec.hh +++ b/source/blender/nodes/NOD_geometry_exec.hh @@ -22,7 +22,6 @@ #include "BKE_geometry_set.hh" #include "BKE_geometry_set_instances.hh" #include "BKE_node_ui_storage.hh" -#include "BKE_persistent_data_handle.hh" #include "DNA_node_types.h" @@ -36,8 +35,6 @@ namespace blender::nodes { using bke::geometry_set_realize_instances; using bke::OutputAttribute; using bke::OutputAttribute_Typed; -using bke::PersistentDataHandleMap; -using bke::PersistentObjectHandle; using bke::ReadAttributeLookup; using bke::WriteAttributeLookup; using fn::CPPType; @@ -63,7 +60,6 @@ using fn::GVMutableArrayPtr; class GeoNodeExecParamsProvider { public: DNode dnode; - const PersistentDataHandleMap *handle_map = nullptr; const Object *self_object = nullptr; const ModifierData *modifier = nullptr; Depsgraph *depsgraph = nullptr; @@ -190,11 +186,6 @@ class GeoNodeExecParams { return *provider_->dnode->bnode(); } - const PersistentDataHandleMap &handle_map() const - { - return *provider_->handle_map; - } - const Object *self_object() const { return provider_->self_object; -- cgit v1.2.3