From 5df49500731a4d36230477e82b45278902437ded Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 21 Dec 2017 11:33:50 +0100 Subject: Depsgraph: Cleanup, move implementation away from header --- source/blender/depsgraph/intern/nodes/deg_node.cc | 12 ++++++++++++ source/blender/depsgraph/intern/nodes/deg_node.h | 12 +----------- 2 files changed, 13 insertions(+), 11 deletions(-) (limited to 'source/blender') diff --git a/source/blender/depsgraph/intern/nodes/deg_node.cc b/source/blender/depsgraph/intern/nodes/deg_node.cc index 2c6c29fc14d..e561c9b236e 100644 --- a/source/blender/depsgraph/intern/nodes/deg_node.cc +++ b/source/blender/depsgraph/intern/nodes/deg_node.cc @@ -85,6 +85,18 @@ string DepsNode::identifier() const return string(typebuf) + " : " + name; } +eDepsNode_Class DepsNode::get_class() const { + if (type == DEG_NODE_TYPE_OPERATION) { + return DEG_NODE_CLASS_OPERATION; + } + else if (type < DEG_NODE_TYPE_PARAMETERS) { + return DEG_NODE_CLASS_GENERIC; + } + else { + return DEG_NODE_CLASS_COMPONENT; + } +} + /* Generic Nodes */ DEG_DEPSNODE_DEFINE(TimeSourceDepsNode, DEG_NODE_TYPE_TIMESOURCE, "Time Source"); diff --git a/source/blender/depsgraph/intern/nodes/deg_node.h b/source/blender/depsgraph/intern/nodes/deg_node.h index 05c787fba11..b303b5ba010 100644 --- a/source/blender/depsgraph/intern/nodes/deg_node.h +++ b/source/blender/depsgraph/intern/nodes/deg_node.h @@ -91,17 +91,7 @@ struct DepsNode { virtual OperationDepsNode *get_entry_operation() { return NULL; } virtual OperationDepsNode *get_exit_operation() { return NULL; } - virtual eDepsNode_Class get_class() const { - if (type == DEG_NODE_TYPE_OPERATION) { - return DEG_NODE_CLASS_OPERATION; - } - else if (type < DEG_NODE_TYPE_PARAMETERS) { - return DEG_NODE_CLASS_GENERIC; - } - else { - return DEG_NODE_CLASS_COMPONENT; - } - } + virtual eDepsNode_Class get_class() const; }; /* Macros for common static typeinfo. */ -- cgit v1.2.3