skeleton assignment improvements

This commit is contained in:
devZoGok
2022-03-04 21:26:24 +02:00
parent dae9cd08d7
commit 3f0f1c60d9
4 changed files with 79 additions and 27 deletions
+11 -2
View File
@@ -6,6 +6,7 @@
#include "text.h"
#include "material.h"
#include "matrix.h"
#include "skeleton.h"
#include "animationController.h"
#include <glm.hpp>
@@ -45,15 +46,23 @@ namespace vb01{
if(visible){
for(Light *l : lights)
l->update();
for(Mesh *m : meshes)
m->update();
for(Text *t : texts)
t->update();
for(Node *c : children)
c->update();
for(ParticleEmitter *p : emitters)
p->update();
for(Skeleton *sk : skeletons)
sk->update();
for(Node *c : children)
c->update();
}
for(Driver *driver : drivers)
driver->drive(getDriverValue(driver->getType()));
}