[Bf-blender-cvs] [b4fbdb9] depsgraph_refactor: Added missing node class for particle eval components.

Lukas Tönne noreply at git.blender.org
Mon May 26 10:43:57 CEST 2014


Commit: b4fbdb9aeb482296b66a062f4644264031bdd313
Author: Lukas Tönne
Date:   Mon May 26 10:12:02 2014 +0200
https://developer.blender.org/rBb4fbdb9aeb482296b66a062f4644264031bdd313

Added missing node class for particle eval components.

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

M	source/blender/depsgraph/intern/depsnode_component.cpp
M	source/blender/depsgraph/intern/depsnode_component.h

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

diff --git a/source/blender/depsgraph/intern/depsnode_component.cpp b/source/blender/depsgraph/intern/depsnode_component.cpp
index 962dcf4..abb2a53 100644
--- a/source/blender/depsgraph/intern/depsnode_component.cpp
+++ b/source/blender/depsgraph/intern/depsnode_component.cpp
@@ -263,6 +263,11 @@ void BoneComponentDepsNode::init(const ID *id, const string &subdata)
 DEG_DEPSNODE_DEFINE(BoneComponentDepsNode, DEPSNODE_TYPE_BONE, "Bone Component");
 static DepsNodeFactoryImpl<BoneComponentDepsNode> DNTI_BONE;
 
+/* Particles Component Defines ============================ */
+
+DEG_DEPSNODE_DEFINE(ParticlesComponentDepsNode, DEPSNODE_TYPE_EVAL_PARTICLES, "Particles Component");
+static DepsNodeFactoryImpl<ParticlesComponentDepsNode> DNTI_EVAL_PARTICLES;
+
 
 void DEG_register_component_depsnodes()
 {
@@ -276,5 +281,5 @@ void DEG_register_component_depsnodes()
 	DEG_register_node_typeinfo(&DNTI_EVAL_POSE);
 	DEG_register_node_typeinfo(&DNTI_BONE);
 	
-	//DEG_register_node_typeinfo(&DNTI_EVAL_PARTICLES);
+	DEG_register_node_typeinfo(&DNTI_EVAL_PARTICLES);
 }
diff --git a/source/blender/depsgraph/intern/depsnode_component.h b/source/blender/depsgraph/intern/depsnode_component.h
index 9bae9e0..52be789 100644
--- a/source/blender/depsgraph/intern/depsnode_component.h
+++ b/source/blender/depsgraph/intern/depsnode_component.h
@@ -147,6 +147,11 @@ struct BoneComponentDepsNode : public ComponentDepsNode {
 	DEG_DEPSNODE_DECLARE;
 };
 
+struct ParticlesComponentDepsNode : public ComponentDepsNode {
+	DEG_DEPSNODE_DECLARE;
+};
+
+
 void DEG_register_component_depsnodes();
 
 #endif // __DEPSNODE_COMPONENT_H__




More information about the Bf-blender-cvs mailing list