From a6db8e149240455c7f516b3cf64c53a7c9de882a Mon Sep 17 00:00:00 2001 From: devZoGok Date: Tue, 3 Jan 2023 16:05:15 +0200 Subject: [PATCH] added missing line --- model.cpp | 2 ++ 1 file changed, 2 insertions(+) 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){