|
Blender V5.0
|
Functions | |
| void | add (Depsgraph &depsgraph, std::function< void()> fn) |
| void | add (::Depsgraph &depsgraph, std::function< void()> fn) |
| void blender::deg::sync_writeback::add | ( | ::Depsgraph & | depsgraph, |
| std::function< void()> | fn ) |
Definition at line 14 of file depsgraph_writeback_sync.cc.
References Vector< T, InlineBufferCapacity, Allocator >::append(), DEG_EVALUATE_SYNC_WRITEBACK_NO, depsgraph, blender::deg::Depsgraph::is_active, lock, blender::deg::Depsgraph::sync_writeback, blender::deg::Depsgraph::sync_writeback_callbacks, and blender::deg::Depsgraph::sync_writeback_callbacks_mutex.
| void blender::deg::sync_writeback::add | ( | Depsgraph & | depsgraph, |
| std::function< void()> | fn ) |
Add a writeback task during depsgraph evaluation. The given function is called after depsgraph evaluation is done if the depsgraph is active. It is allowed to change original data blocks and even to add new relations.
References depsgraph.
Referenced by blender::add_data_block_items_writeback().