compilation fixes

This commit is contained in:
devZoGok
2022-03-17 19:12:28 +02:00
parent 993dddb130
commit 95815c9ea3
10 changed files with 96 additions and 37 deletions
+18 -4
View File
@@ -1,5 +1,5 @@
#include "root.h"
#include "node.h"
#include "bone.h"
#include "mesh.h"
#include "particleEmitter.h"
#include "light.h"
@@ -20,10 +20,24 @@ namespace vb01{
this->pos = pos;
this->scale = scale;
this->orientation = orientation;
}
globalAxis[0] = Vector3::VEC_I;
globalAxis[1] = Vector3::VEC_J;
globalAxis[2] = Vector3::VEC_K;
Node::Node(Node *node) : Animatable(node->getName()){
for(Mesh *m : node->getMeshes())
attachMesh(new Mesh(m->getMeshBase()));
for(Skeleton *skel : node->getSkeletons()){
Skeleton *sk = new Skeleton();
vector<Bone*> bones = skel->getBones();
for(Bone *b : bones)
sk->addBone(b, nullptr);
addSkeleton(sk);
}
for(Node *child : node->getChildren())
attachChild(new Node(child));
}
Node::~Node(){