Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-12-21 13:33:50 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-12-21 13:35:10 +0300
commit5df49500731a4d36230477e82b45278902437ded (patch)
tree06f0c0af2d0ca7024309907b85cfd6ab86c93c3a /source/blender
parentf6b2fbb02922e9c303b95ffbdd93cd047a640338 (diff)
Depsgraph: Cleanup, move implementation away from header
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/depsgraph/intern/nodes/deg_node.cc12
-rw-r--r--source/blender/depsgraph/intern/nodes/deg_node.h12
2 files changed, 13 insertions, 11 deletions
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. */