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

@@ -17,6 +17,7 @@
#ifndef __OBJECT_H__
#define __OBJECT_H__
#include "node.h"
#include "scene.h"
#include "util_boundbox.h"
@@ -37,12 +38,13 @@ struct Transform;
/* Object */
class Object {
class Object : public Node {
public:
NODE_DECLARE;
Mesh *mesh;
Transform tfm;
BoundBox bounds;
ustring name;
uint random_id;
int pass_id;
vector<ParamValue> attributes;