From c82029f728523b0743cbce69479c7a1de549fea7 Mon Sep 17 00:00:00 2001 From: devZoGok Date: Sun, 13 Aug 2023 12:32:20 +0300 Subject: [PATCH] including root model node --- model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model.cpp b/model.cpp index 99452e9..a98cf93 100755 --- a/model.cpp +++ b/model.cpp @@ -49,7 +49,7 @@ namespace vb01{ } void Model::setMaterial(Material *mat){ - vector descendants; + vector descendants = vector{this}; getDescendants(descendants); for(Node *node : descendants)