80 const char *description)
90 const char *description)
100 const char *description)
102 if (scene->
camera !=
nullptr) {
126 const char *description)
141 const char *description)
155 if (ob->type ==
OB_EMPTY && ob->instance_collection !=
nullptr) {
164 const char *description)
173 ntree_output_key, deg_node_handle, description);
181 const char *description)
191 const char *bone_name,
193 const char *description)
212 const char *description)
224 if (rel !=
nullptr) {
228 fprintf(stderr,
"Error in point cache relation from %s to ^%s.\n",
object->id.name,
id->name);
277 return reinterpret_cast<Depsgraph *
>(relation_builder->
getGraph());
321 DEG_DEBUG_PRINTF(graph, TAG,
"%s: Tagging relations for update.\n", __func__);
331 if (id_node !=
nullptr) {
332 graph_id_tag_update(deg_graph->
bmain,
#define FOREACH_COLLECTION_OBJECT_RECURSIVE_END
#define FOREACH_COLLECTION_OBJECT_RECURSIVE_BEGIN(_collection, _object)
Object groups, one object can be in many groups at once.
Object is a sort of wrapper for general info.
Relation * add_node_handle_relation(const KeyType &key_from, const DepsNodeHandle *handle, const char *description, int flags=0)
Relation * add_depends_on_transform_relation(ID *id, const KeyTo &key_to, const char *description, int flags=0)
void add_customdata_mask(Object *object, const DEGCustomDataMeshMasks &customdata_masks)
void add_special_eval_flag(ID *id, uint32_t flag)
Relation * add_relation(const KeyFrom &key_from, const KeyTo &key_to, const char *description, int flags=0)
#define DEG_GLOBAL_DEBUG_PRINTF(type,...)
#define DEG_DEBUG_PRINTF(depsgraph, type,...)
void camera(KernelGlobals &kg, const ShadingData &sd, float3 &outview, float &outdepth, float &outdist)
Span< Depsgraph * > get_all_registered_graphs(Main *bmain)
NodeType geometry_tag_to_component(const ID *id)
@ RELATION_FLAG_FLUSH_USER_EDIT_ONLY
@ NTREE_GEOMETRY_PREPROCESS
@ GENERIC_DATABLOCK_UPDATE
@ NTREE_GEOMETRY_PREPROCESS
NodeType nodeTypeFromObjectComponent(eDepsObjectComponentType component_type)
@ DEG_UPDATE_SOURCE_RELATIONS
void DEG_graph_tag_relations_update(Depsgraph *graph)
void DEG_graph_build_from_view_layer(Depsgraph *graph)
void DEG_graph_build_from_collection(Depsgraph *graph, Collection *collection)
void DEG_add_generic_id_relation(DepsNodeHandle *node_handle, ID *id, const char *description)
Depsgraph * DEG_get_graph_from_handle(DepsNodeHandle *node_handle)
void DEG_add_special_eval_flag(DepsNodeHandle *handle, ID *id, uint32_t flag)
void DEG_add_object_pointcache_relation(DepsNodeHandle *node_handle, Object *object, eDepsObjectComponentType component, const char *description)
void DEG_add_object_relation(DepsNodeHandle *node_handle, Object *object, eDepsObjectComponentType component, const char *description)
void DEG_add_bone_relation(DepsNodeHandle *handle, Object *object, const char *bone_name, eDepsObjectComponentType component, const char *description)
void DEG_add_collection_geometry_relation(DepsNodeHandle *node_handle, Collection *collection, const char *description)
void DEG_add_depends_on_transform_relation(DepsNodeHandle *node_handle, const char *description)
static deg::NodeType deg_build_scene_component_type(eDepsSceneComponentType component)
void DEG_add_node_tree_output_relation(DepsNodeHandle *node_handle, bNodeTree *node_tree, const char *description)
void DEG_graph_build_for_render_pipeline(Depsgraph *graph)
static void add_camera_parameters_relation(DepsNodeHandle *node_handle, Camera *camera, const char *description)
void DEG_add_object_cache_relation(DepsNodeHandle *handle, CacheFile *cache_file, eDepsObjectComponentType component, const char *description)
void DEG_add_time_source_relation(DepsNodeHandle *node_handle, const char *description)
void DEG_graph_build_from_ids(Depsgraph *graph, Span< ID * > ids)
void DEG_graph_build_for_all_objects(Depsgraph *graph)
void DEG_graph_build_for_compositor_preview(Depsgraph *graph)
static deg::DepsNodeHandle * get_node_handle(DepsNodeHandle *node_handle)
void DEG_add_collection_geometry_customdata_mask(DepsNodeHandle *node_handle, Collection *collection, const CustomData_MeshMasks *masks)
bool DEG_object_has_geometry_component(Object *object)
void DEG_graph_relations_update(Depsgraph *graph)
void DEG_relations_tag_update(Main *bmain)
void DEG_add_scene_camera_relation(DepsNodeHandle *node_handle, Scene *scene, eDepsObjectComponentType component, const char *description)
@ DEG_SCENE_COMP_ANIMATION
@ DEG_SCENE_COMP_SEQUENCER
@ DEG_SCENE_COMP_PARAMETERS
@ DEG_SCENE_COMP_COMPOSITOR
ID * DEG_get_id_from_handle(DepsNodeHandle *node_handle)
void DEG_add_scene_relation(DepsNodeHandle *node_handle, Scene *scene, eDepsSceneComponentType component, const char *description)
void DEG_add_vfont_relation(DepsNodeHandle *handle, VFont *vfont, const char *description)
void DEG_add_customdata_mask(DepsNodeHandle *handle, Object *object, const CustomData_MeshMasks *masks)
ListBaseT< TimeMarker > markers
DepsgraphRelationBuilder * builder
IDNode * find_id_node(const ID *id) const
bool need_update_relations