diff --git a/model.cpp b/model.cpp index 54b6475..99452e9 100755 --- a/model.cpp +++ b/model.cpp @@ -55,6 +55,8 @@ namespace vb01{ for(Node *node : descendants) for(Mesh *mesh : node->getMeshes()) mesh->setMaterial(mat); + + this->material = mat; } void Model::setCastShadow(bool castShadow){