removed dependency from directory

This commit is contained in:
devZoGok
2021-10-18 19:08:10 +03:00
parent 3d666aa3a1
commit 9e6b5a995a
12 changed files with 82 additions and 23 deletions
+12 -1
View File
@@ -15,7 +15,18 @@ namespace vb01{
this->orientation=orientation;
}
Node::~Node(){}
Node::~Node(){
for(Light *l : lights)
delete l;
for(Mesh *m : meshes)
delete m;
for(ParticleEmitter *p : emitters)
delete p;
for(Text *t : texts)
delete t;
for(Node *c : children)
delete c;
}
void Node::update(){
if(visible){