[Bf-blender-cvs] [5df49500731] master: Depsgraph: Cleanup, move implementation away from header

Sergey Sharybin noreply at git.blender.org
Thu Dec 21 11:35:19 CET 2017


Commit: 5df49500731a4d36230477e82b45278902437ded
Author: Sergey Sharybin
Date:   Thu Dec 21 11:33:50 2017 +0100
Branches: master
https://developer.blender.org/rB5df49500731a4d36230477e82b45278902437ded

Depsgraph: Cleanup, move implementation away from header

===================================================================

M	source/blender/depsgraph/intern/nodes/deg_node.cc
M	source/blender/depsgraph/intern/nodes/deg_node.h

===================================================================

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. */



More information about the Bf-blender-cvs mailing list