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