104 return id_hash.lookup_default(
id,
nullptr);
127template<
typename FilterFunc>
130 for (
IDNode *id_node : *id_nodes) {
131 if (id_node->id_cow ==
nullptr) {
136 if (id_node->id_cow == id_node->id_orig) {
147 const ID_Type id_type =
GS(id_node->id_cow->name);
180 if (rel !=
nullptr) {
198 static_assert(std::is_trivially_destructible_v<Relation>);
208 const char *description)
215 if (description !=
nullptr && !
STREQ(rel->
name, description)) {
228 if (
node ==
nullptr) {
251 if (id_node ==
nullptr) {
269 return const_cast<ID *
>(id_orig);
283 return reinterpret_cast<Depsgraph *
>(deg_depsgraph);
293 const bool do_update_register = deg_graph->
bmain != bmain;
294 if (do_update_register && deg_graph->
bmain !=
nullptr) {
298 deg_graph->
bmain = bmain;
299 deg_graph->
scene = scene;
302 if (do_update_register) {
309 if (graph ==
nullptr) {
315 delete deg_depsgraph;
326 if (depsgraph ==
nullptr) {
destruct_ptr< T > construct(Args &&...args)
void append(const T &value)
@ RELATION_CHECK_BEFORE_ADD
bool deg_eval_copy_is_expanded(const ID *id_cow)
static void clear_id_nodes_conditional(Depsgraph::IDDepsNodes *id_nodes, const FilterFunc &filter)
void clear_physics_relations(Depsgraph *graph)
DepsNodeFactory * type_get_factory(const NodeType type)
void unregister_graph(Depsgraph *depsgraph)
void register_graph(Depsgraph *depsgraph)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
unsigned __int64 uint64_t
bool DEG_is_active(const Depsgraph *depsgraph)
void DEG_graph_free(Depsgraph *graph)
uint64_t DEG_get_update_count(const Depsgraph *depsgraph)
Depsgraph * DEG_graph_new(Main *bmain, Scene *scene, ViewLayer *view_layer, eEvaluationMode mode)
void DEG_make_inactive(Depsgraph *depsgraph)
void DEG_make_active(Depsgraph *depsgraph)
void BLI_spin_end(SpinLock *spin)
float BKE_scene_frame_get(const Scene *scene)
void DEG_graph_replace_owners(Depsgraph *depsgraph, Main *bmain, Scene *scene, ViewLayer *view_layer)
int BKE_idtype_idcode_to_index(short idcode)
void BLI_spin_init(SpinLock *spin)
float BKE_scene_ctime_get(const Scene *scene)
ID_Type GS(const char *name)
@ DEG_EVALUATE_SYNC_WRITEBACK_NO
bool DEG_is_evaluating(const Depsgraph *depsgraph)
void DEG_disable_visibility_optimization(Depsgraph *depsgraph)
virtual Node * create_node(const ID *id, const char *subdata, StringRef name) const =0
bool use_visibility_optimization
ID * get_cow_id(const ID *id_orig) const
IDNode * find_id_node(const ID *id) const
Map< const ID *, ListBaseT< CollisionRelation > * > * physics_relations_collision[DEG_PHYSICS_COLLISION_NUM]
char id_type_updated[INDEX_ID_MAX]
bool need_tag_id_on_graph_visibility_time_update
LinearAllocator build_allocator
light_linking::Cache light_linking_cache
bool need_tag_id_on_graph_visibility_update
TimeSourceNode * find_time_source() const
IDNode * add_id_node(ID *id, ID *id_cow_hint=nullptr)
bool is_render_pipeline_depsgraph
Vector< IDNode * > IDDepsNodes
char id_type_updated_backup[INDEX_ID_MAX]
bool need_update_nodes_visibility
Depsgraph(Main *bmain, Scene *scene, ViewLayer *view_layer, eEvaluationMode mode)
DepsgraphEvaluateSyncWriteback sync_writeback
Relation * add_new_relation(Node *from, Node *to, const char *description, int flags=0)
char id_type_exist[INDEX_ID_MAX]
bool has_animated_visibility
Map< const ID *, IDNode * > id_hash
Map< const ID *, ListBaseT< EffectorRelation > * > * physics_relations_effector
Relation * check_nodes_connected(const Node *from, const Node *to, const char *description)
TimeSourceNode * add_time_source()
Set< OperationNode * > entry_tags
TimeSourceNode * time_source
bool need_update_relations
void add_entry_tag(OperationNode *node)
void init_copy_on_write(ID *id_cow_hint=nullptr)
void tag_update(Depsgraph *graph, eUpdateSource source) override