mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
using only the neeeded number of vertex positions
This commit is contained in:
@@ -28,14 +28,14 @@ namespace vb01{
|
||||
}
|
||||
|
||||
Model::~Model(){
|
||||
delete children[0]->getMesh(0)->getMaterial();
|
||||
|
||||
vector<Node*> descendants;
|
||||
getDescendants(descendants);
|
||||
|
||||
for(Node *node : descendants)
|
||||
for(Mesh *mesh : node->getMeshes())
|
||||
for(Mesh *mesh : node->getMeshes()){
|
||||
delete mesh->getMaterial();
|
||||
mesh->setMaterial(nullptr);
|
||||
}
|
||||
|
||||
while(!children.empty()){
|
||||
Node *c = children[children.size() - 1];
|
||||
|
||||
Reference in New Issue
Block a user