Blender V5.0
main_invariants.cc File Reference
#include "BKE_main_invariants.hh"
#include "BKE_node_tree_update.hh"
#include "DEG_depsgraph.hh"
#include "DNA_node_types.h"
#include "WM_api.hh"
#include "WM_types.hh"
#include <optional>

Go to the source code of this file.

Functions

static void send_notifiers_after_node_tree_change (ID *id, bNodeTree *ntree)
static void propagate_node_tree_changes (Main &bmain, const std::optional< blender::Span< ID * > > modified_ids)
void BKE_main_ensure_invariants (Main &bmain, const std::optional< blender::Span< ID * > > modified_ids)
void BKE_main_ensure_invariants (Main &bmain, ID &modified_id)

Function Documentation

◆ BKE_main_ensure_invariants() [1/2]

void BKE_main_ensure_invariants ( Main & bmain,
const std::optional< blender::Span< ID * > > modified_ids )

Definition at line 67 of file main_invariants.cc.

References propagate_node_tree_changes().

Referenced by BKE_main_ensure_invariants().

◆ BKE_main_ensure_invariants() [2/2]

void BKE_main_ensure_invariants ( Main & bmain,
ID & modified_id )

Same as above but the calling code is less verbose in the common case when only a single data-block has been modified.

Definition at line 72 of file main_invariants.cc.

References BKE_main_ensure_invariants().

◆ propagate_node_tree_changes()

void propagate_node_tree_changes ( Main & bmain,
const std::optional< blender::Span< ID * > > modified_ids )
static

◆ send_notifiers_after_node_tree_change()