Blender V5.3
blender::nodes::GeoNodesOperatorDepsgraphs Struct Reference

#include <NOD_geometry_nodes_lazy_function.hh>

Public Member Functions

 ~GeoNodesOperatorDepsgraphs ()
const ID * get_evaluated_id (const ID &id_orig) const

Public Attributes

const Depsgraph * active = nullptr
Depsgraph * extra = nullptr

Detailed Description

Definition at line 168 of file NOD_geometry_nodes_lazy_function.hh.

Constructor & Destructor Documentation

◆ ~GeoNodesOperatorDepsgraphs()

blender::nodes::GeoNodesOperatorDepsgraphs::~GeoNodesOperatorDepsgraphs ( )

Definition at line 4365 of file geometry_nodes_lazy_function.cc.

References blender::DEG_graph_free(), and extra.

Member Function Documentation

◆ get_evaluated_id()

const ID * blender::nodes::GeoNodesOperatorDepsgraphs::get_evaluated_id ( const ID & id_orig) const

The evaluated data-block might be in the scene's active depsgraph, in that case we should use it directly. Otherwise retrieve it from the extra depsgraph that was built for all other data-blocks. Return null if it isn't found, generally geometry nodes can handle null ID pointers.

Definition at line 4381 of file geometry_nodes_lazy_function.cc.

References active, extra, blender::nodes::get_only_evaluated_id(), blender::GS(), ID_TYPE_USE_COPY_ON_EVAL, and blender::ID::name.

Referenced by blender::nodes::load_data_block_input().

Member Data Documentation

◆ active

const Depsgraph* blender::nodes::GeoNodesOperatorDepsgraphs::active = nullptr

Current evaluated depsgraph from the viewport. Shouldn't be null.

Definition at line 170 of file NOD_geometry_nodes_lazy_function.hh.

Referenced by blender::nodes::LazyFunctionForImplicitSceneFrame< T >::execute_impl(), get_evaluated_id(), and blender::nodes::GeoNodesCallData::self_object().

◆ extra

Depsgraph* blender::nodes::GeoNodesOperatorDepsgraphs::extra = nullptr

Depsgraph containing IDs referenced by the node tree and the node tree itself and from node group inputs (the redo panel).

Definition at line 175 of file NOD_geometry_nodes_lazy_function.hh.

Referenced by get_evaluated_id(), blender::ed::geometry::run_node_group_exec(), and ~GeoNodesOperatorDepsgraphs().


The documentation for this struct was generated from the following files: