This commit is contained in:
devZoGok
2024-09-06 18:36:45 +03:00
parent 2868853c5c
commit 8ba95bbbfe
+1 -3
View File
@@ -32,10 +32,8 @@ namespace vb01{
getDescendants(descendants);
for(Node *node : descendants)
for(Mesh *mesh : node->getMeshes()){
delete mesh->getMaterial();
for(Mesh *mesh : node->getMeshes())
mesh->setMaterial(nullptr);
}
while(!children.empty()){
Node *c = children[children.size() - 1];