52#undef INVALIDATE_ON_FLUSH
71void flush_init_id_node_func(
void *__restrict data_v,
83inline void flush_prepare(
Depsgraph *graph)
86 node->scheduled =
false;
101 queue->push_back(op_node);
105 "Operation is entry point for update: %s\n",
110inline void flush_handle_id_node(
IDNode *id_node)
116inline void flush_handle_component_node(
IDNode *id_node,
193 queue->push_front(to_node);
226 "Accumulated recalc bits for %s: %u\n",
244#ifdef INVALIDATE_ON_FLUSH
245void invalidate_tagged_evaluated_transform(
ID *
id)
251 std::fill_n((
float *)
object->object_to_world().ptr(), 16, NAN);
259void invalidate_tagged_evaluated_geometry(
ID *
id)
274void invalidate_tagged_evaluated_data(
Depsgraph *graph)
276#ifdef INVALIDATE_ON_FLUSH
289 switch (comp_node->
type) {
291 invalidate_tagged_evaluated_transform(id_cow);
294 invalidate_tagged_evaluated_geometry(id_cow);
321 flush_prepare(graph);
324 flush_schedule_entrypoints(graph, &queue);
327 update_ctx.
bmain = bmain;
328 update_ctx.
depsgraph =
reinterpret_cast<::blender::Depsgraph *
>(graph);
332 while (!queue.empty()) {
335 while (op_node !=
nullptr) {
341 flush_handle_id_node(id_node);
342 flush_handle_component_node(id_node, comp_node, &queue);
344 op_node = flush_schedule_children(op_node, &queue);
348 flush_editors_id_update(graph, &update_ctx);
351 invalidate_tagged_evaluated_data(graph);
General operations, lookup, etc. for blender objects.
#define DEG_DEBUG_PRINTF(depsgraph, type,...)
@ RELATION_FLAG_FLUSH_USER_EDIT_ONLY
void deg_editors_id_update(const DEGEditorUpdateContext *update_ctx, ID *id)
std::deque< OperationNode * > FlushQueue
bool deg_eval_copy_is_expanded(const ID *id_cow)
void deg_graph_clear_tags(Depsgraph *graph)
DepsNodeFactory * type_get_factory(const NodeType type)
void deg_graph_flush_updates(Depsgraph *graph)
@ COMPONENT_STATE_SCHEDULED
@ DEPSOP_FLAG_NEEDS_UPDATE
@ DEPSOP_FLAG_USER_MODIFIED
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
BLI_INLINE void BLI_parallel_range_settings_defaults(TaskParallelSettings *settings)
void BLI_task_parallel_range(int start, int stop, void *userdata, TaskParallelRangeFunc func, const TaskParallelSettings *settings)
void BKE_object_free_derived_caches(Object *ob)
void DEG_graph_id_type_tag(Depsgraph *depsgraph, short id_type)
ID_Type GS(const char *name)
OperationNode * get_entry_operation() override
Vector< OperationNode * > operations
virtual int id_recalc_tag() const =0
OperationNodes operations
Set< OperationNode * > entry_tags
TimeSourceNode * time_source
Map< ComponentIDKey, ComponentNode * > components
ComponentNode * find_component(NodeType type, StringRef name="") const
std::string identifier() const override
void flush_update_tag(Depsgraph *graph)