mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
@@ -28,18 +28,7 @@ namespace vb01{
|
||||
}
|
||||
|
||||
Model::~Model(){
|
||||
vector<Node*> descendants;
|
||||
getDescendants(descendants);
|
||||
|
||||
for(Node *node : descendants)
|
||||
for(Mesh *mesh : node->getMeshes())
|
||||
mesh->setMaterial(nullptr);
|
||||
|
||||
while(!children.empty()){
|
||||
Node *c = children[children.size() - 1];
|
||||
dettachChild(c);
|
||||
delete c;
|
||||
}
|
||||
this->setMaterial(nullptr);
|
||||
}
|
||||
|
||||
void Model::update(){
|
||||
|
||||
Reference in New Issue
Block a user