Blender V5.0
DEG_depsgraph_writeback_sync.hh File Reference
#include <functional>

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::deg
namespace  blender::deg::sync_writeback

Functions

void blender::deg::sync_writeback::add (Depsgraph &depsgraph, std::function< void()> fn)

Detailed Description

This file provides an API that can be used to modify original (as opposed to evaluated) data-blocks after depsgraph evaluation. For some data (e.g. animated properties), this is done during depsgraph evaluation. However, this is not possible in all cases. For example, if the change to the original data adds a new relation between data-blocks, a user-count (ID.us) has to be increased. This counter is not atomic and can therefore not be modified arbitrarily from different threads.

Definition in file DEG_depsgraph_writeback_sync.hh.