Code refactor: nodify object and mesh, but not used for XML yet.
[blender-staging.git] / intern / cycles / render / mesh.h
index 2d1f3e3a83efd4cdfd0f1c88b83771b5323a282f..7556b7ccf1edb8dd6a0c6d7dce8b52e97f211ee6 100644 (file)
@@ -18,6 +18,7 @@
 #define __MESH_H__
 
 #include "attribute.h"
+#include "node.h"
 #include "shader.h"
 
 #include "util_boundbox.h"
@@ -42,8 +43,10 @@ class DiagSplit;
 
 /* Mesh */
 
-class Mesh {
+class Mesh : public Node {
 public:
+       NODE_DECLARE;
+
        /* Mesh Triangle */
        struct Triangle {
                int v[3];
@@ -95,8 +98,6 @@ public:
                DISPLACE_NUM_METHODS,
        };
 
-       ustring name;
-
        /* Mesh Data */
        enum GeometryFlags {
                GEOMETRY_NONE      = 0,