improved descendants retrieval method

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent b5f64c5ad3
commit 56a9ceb21e
5 changed files with 19 additions and 20 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ namespace vb01{
Node *rootNode = root->getRootNode();
vector<Node*> descendants;
vector<Light*> lights;
rootNode->getDescendants(rootNode, descendants);
rootNode->getDescendants(descendants);
descendants.push_back(rootNode);
std::vector<Material*> materials;
Camera *cam=root->getCamera();