Code refactor: nodify object and mesh, but not used for XML yet.

Differential Revision: https://developer.blender.org/D2016
This commit is contained in:
Brecht Van Lommel
2016-05-07 21:44:17 +02:00
parent c96a4c8a2a
commit 001ba5bdf5
4 changed files with 53 additions and 19 deletions

View 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,