|
Blender V5.0
|
#include <BKE_compute_contexts.hh>
Inherits blender::bke::NodeComputeContext.
Public Member Functions | |
| EvaluateClosureComputeContext (const ComputeContext *parent, int32_t node_id, const bNodeTree *tree=nullptr, const std::optional< nodes::ClosureSourceLocation > &closure_source_location=std::nullopt) | |
| std::optional< nodes::ClosureSourceLocation > | closure_source_location () const |
| bool | is_recursive () const |
| Public Member Functions inherited from blender::bke::NodeComputeContext | |
| NodeComputeContext (const ComputeContext *parent, int32_t node_id, const bNodeTree *tree=nullptr) | |
| int32_t | node_id () const |
| const bNodeTree * | tree () const |
| const bNode * | node () const |
| Public Member Functions inherited from blender::ComputeContext | |
| ComputeContext (const ComputeContext *parent) | |
| virtual | ~ComputeContext ()=default |
| const ComputeContextHash & | hash () const |
| const ComputeContext * | parent () const |
| void | print_stack (std::ostream &stream, StringRef name) const |
Additional Inherited Members | |
| Protected Attributes inherited from blender::ComputeContext | |
| const ComputeContext * | parent_ = nullptr |
| ComputeContextHash | hash_ |
Definition at line 165 of file BKE_compute_contexts.hh.
| blender::bke::EvaluateClosureComputeContext::EvaluateClosureComputeContext | ( | const ComputeContext * | parent, |
| int32_t | node_id, | ||
| const bNodeTree * | tree = nullptr, | ||
| const std::optional< nodes::ClosureSourceLocation > & | closure_source_location = std::nullopt ) |
Definition at line 142 of file compute_contexts.cc.
References closure_source_location(), blender::ComputeContext::ComputeContext(), blender::bke::NodeComputeContext::node_id(), blender::bke::NodeComputeContext::NodeComputeContext(), blender::ComputeContext::parent(), and blender::bke::NodeComputeContext::tree().
Referenced by is_recursive().
|
inline |
Definition at line 176 of file BKE_compute_contexts.hh.
Referenced by EvaluateClosureComputeContext().
| bool blender::bke::EvaluateClosureComputeContext::is_recursive | ( | ) | const |
True if there is a parent context that evaluates the same closure already. This can only be used when the #ClosureSourceLocation is available.
Definition at line 151 of file compute_contexts.cc.
References blender::ComputeContext::ComputeContext(), EvaluateClosureComputeContext(), blender::ComputeContext::parent(), and blender::ComputeContext::parent_.
Referenced by blender::nodes::find_origin_sockets_through_contexts(), and blender::nodes::find_target_sockets_through_contexts().