Depsgraph: Use more clear name for enumerator
Matches enumerator items and type name.
This commit is contained in:
parent
77eaa4790d
commit
83ec5fbf8d
@ -311,7 +311,7 @@ const char *operationCodeAsString(eDepsOperation_Code opcode);
|
||||
*
|
||||
* NOTE: This is a bit mask, so accumulation of sources is possible.
|
||||
*/
|
||||
typedef enum eDepsTag_Source {
|
||||
typedef enum eUpdateSource {
|
||||
/* Update is caused by a time change. */
|
||||
DEG_UPDATE_SOURCE_TIME = (1 << 0),
|
||||
/* Update caused by user directly or indirectly influencing the node. */
|
||||
@ -320,6 +320,6 @@ typedef enum eDepsTag_Source {
|
||||
DEG_UPDATE_SOURCE_RELATIONS = (1 << 2),
|
||||
/* Update is happening due to visibility change. */
|
||||
DEG_UPDATE_SOURCE_VISIBILITY = (1 << 3),
|
||||
} eDepsTag_Source;
|
||||
} eUpdateSource;
|
||||
|
||||
} // namespace DEG
|
||||
|
@ -98,8 +98,7 @@ struct DepsNode {
|
||||
virtual void init(const ID * /*id*/,
|
||||
const char * /*subdata*/) {}
|
||||
|
||||
virtual void tag_update(Depsgraph * /*graph*/,
|
||||
eDepsTag_Source /*source*/) {}
|
||||
virtual void tag_update(Depsgraph * /*graph*/, eUpdateSource /*source*/) {}
|
||||
|
||||
virtual OperationDepsNode *get_entry_operation() { return NULL; }
|
||||
virtual OperationDepsNode *get_exit_operation() { return NULL; }
|
||||
|
@ -283,7 +283,7 @@ void ComponentDepsNode::clear_operations()
|
||||
operations.clear();
|
||||
}
|
||||
|
||||
void ComponentDepsNode::tag_update(Depsgraph *graph, eDepsTag_Source source)
|
||||
void ComponentDepsNode::tag_update(Depsgraph *graph, eUpdateSource source)
|
||||
{
|
||||
OperationDepsNode *entry_op = get_entry_operation();
|
||||
if (entry_op != NULL && entry_op->flag & DEPSOP_FLAG_NEEDS_UPDATE) {
|
||||
|
@ -120,7 +120,7 @@ struct ComponentDepsNode : public DepsNode {
|
||||
|
||||
void clear_operations();
|
||||
|
||||
virtual void tag_update(Depsgraph *graph, eDepsTag_Source source) override;
|
||||
virtual void tag_update(Depsgraph *graph, eUpdateSource source) override;
|
||||
|
||||
virtual OperationDepsNode *get_entry_operation() override;
|
||||
virtual OperationDepsNode *get_exit_operation() override;
|
||||
|
@ -207,7 +207,7 @@ ComponentDepsNode *IDDepsNode::add_component(eDepsNode_Type type,
|
||||
return comp_node;
|
||||
}
|
||||
|
||||
void IDDepsNode::tag_update(Depsgraph *graph, eDepsTag_Source source)
|
||||
void IDDepsNode::tag_update(Depsgraph *graph, eUpdateSource source)
|
||||
{
|
||||
GHASH_FOREACH_BEGIN(ComponentDepsNode *, comp_node, components)
|
||||
{
|
||||
|
@ -61,7 +61,7 @@ struct IDDepsNode : public DepsNode {
|
||||
ComponentDepsNode *add_component(eDepsNode_Type type,
|
||||
const char *name = "");
|
||||
|
||||
virtual void tag_update(Depsgraph *graph, eDepsTag_Source source) override;
|
||||
virtual void tag_update(Depsgraph *graph, eUpdateSource source) override;
|
||||
|
||||
void finalize_build(Depsgraph *graph);
|
||||
|
||||
|
@ -74,7 +74,7 @@ string OperationDepsNode::full_identifier() const
|
||||
return owner_str + "." + identifier();
|
||||
}
|
||||
|
||||
void OperationDepsNode::tag_update(Depsgraph *graph, eDepsTag_Source source)
|
||||
void OperationDepsNode::tag_update(Depsgraph *graph, eUpdateSource source)
|
||||
{
|
||||
if ((flag & DEPSOP_FLAG_NEEDS_UPDATE) == 0) {
|
||||
graph->add_entry_tag(this);
|
||||
|
@ -61,7 +61,7 @@ struct OperationDepsNode : public DepsNode {
|
||||
virtual string identifier() const override;
|
||||
string full_identifier() const;
|
||||
|
||||
virtual void tag_update(Depsgraph *graph, eDepsTag_Source source) override;
|
||||
virtual void tag_update(Depsgraph *graph, eUpdateSource source) override;
|
||||
|
||||
bool is_noop() const { return (bool)evaluate == false; }
|
||||
|
||||
|
@ -37,8 +37,7 @@
|
||||
|
||||
namespace DEG {
|
||||
|
||||
void TimeSourceDepsNode::tag_update(Depsgraph *graph,
|
||||
eDepsTag_Source /*source*/)
|
||||
void TimeSourceDepsNode::tag_update(Depsgraph *graph, eUpdateSource /*source*/)
|
||||
{
|
||||
foreach (DepsRelation *rel, outlinks) {
|
||||
DepsNode *node = rel->to;
|
||||
|
@ -44,7 +44,7 @@ struct TimeSourceDepsNode : public DepsNode {
|
||||
|
||||
// TODO: evaluate() operation needed
|
||||
|
||||
virtual void tag_update(Depsgraph *graph, eDepsTag_Source source) override;
|
||||
virtual void tag_update(Depsgraph *graph, eUpdateSource source) override;
|
||||
|
||||
DEG_DEPSNODE_DECLARE;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user