60 void init(
const ID *
id,
const char *subdata)
override;
70 int name_tag = -1)
const;
162#define DEG_COMPONENT_NODE_DEFINE_TYPEINFO(NodeType, type_, type_name_, id_recalc_tag) \
163 const Node::TypeInfo NodeType::typeinfo = Node::TypeInfo(type_, type_name_, id_recalc_tag)
165#define DEG_COMPONENT_NODE_DECLARE DEG_DEPSNODE_DECLARE
167#define DEG_COMPONENT_NODE_DEFINE(name, NAME, id_recalc_tag) \
168 DEG_COMPONENT_NODE_DEFINE_TYPEINFO( \
169 name##ComponentNode, NodeType::NAME, #name " Component", id_recalc_tag); \
170 static DepsNodeFactoryImpl<name##ComponentNode> DNTI_##NAME
172#define DEG_COMPONENT_NODE_DECLARE_GENERIC(name) \
173 struct name##ComponentNode : public ComponentNode { \
174 DEG_COMPONENT_NODE_DECLARE; \
177#define DEG_COMPONENT_NODE_DECLARE_NO_COW_TAG_ON_UPDATE(name) \
178 struct name##ComponentNode : public ComponentNode { \
179 DEG_COMPONENT_NODE_DECLARE; \
180 virtual bool need_tag_cow_before_update(const IDRecalcFlag ) \
186#define DEG_COMPONENT_NODE_DECLARE_NO_COW(name) \
187 struct name##ComponentNode : public ComponentNode { \
188 DEG_COMPONENT_NODE_DECLARE; \
189 virtual bool depends_on_cow() \
226 void init(
const ID *
id,
const char *subdata)
override;
#define ID_TYPE_SUPPORTS_PARAMS_WITHOUT_COW(id_type)
DEG_COMPONENT_NODE_DECLARE_GENERIC(Animation)
void deg_register_component_depsnodes()
DEG_COMPONENT_NODE_DECLARE_NO_COW_TAG_ON_UPDATE(BatchCache)
std::function< void(blender::Depsgraph *)> DepsEvalOperationCb
unsigned __int64 uint64_t
constexpr uint64_t get_default_hash(const T &v, const Args &...args)
DEG_COMPONENT_NODE_DECLARE
bool need_tag_cow_before_update(const IDRecalcFlag tag) override
void init(const ID *id, const char *subdata) override
DEG_COMPONENT_NODE_DECLARE
struct bPoseChannel * pchan
OperationIDKey(const OperationCode opcode)
friend bool operator==(const OperationIDKey &a, const OperationIDKey &b)=default
OperationIDKey(const OperationCode opcode, const StringRef name, const int name_tag)
OperationNode * get_entry_operation() override
bool possibly_affects_visible_id
virtual bool need_tag_cow_before_update(const IDRecalcFlag)
std::string identifier() const override
OperationNode * get_operation(OperationIDKey key) const
void tag_update(Depsgraph *graph, eUpdateSource source) override
OperationNode * exit_operation
Vector< OperationNode * > operations
OperationNode * find_operation(OperationIDKey key) const
OperationNode * add_operation(const DepsEvalOperationCb &op, OperationCode opcode, const StringRef name="", int name_tag=-1)
OperationNode * get_exit_operation() override
bool has_operation(OperationIDKey key) const
void set_exit_operation(OperationNode *op_node)
void finalize_build(Depsgraph *graph)
OperationNode * entry_operation
Map< ComponentNode::OperationIDKey, OperationNode * > * operations_map
void set_entry_operation(OperationNode *op_node)
virtual bool depends_on_cow()
DEG_COMPONENT_NODE_DECLARE
bool need_tag_cow_before_update(const IDRecalcFlag) override