next iteration.

This commit is contained in:
kimkulling
2020-08-31 16:10:38 +02:00
parent 6d5c388780
commit e62b4e5cce
4 changed files with 10 additions and 6 deletions

View File

@@ -134,7 +134,7 @@ public:
std::copy(mMatArray.begin(), mMatArray.end(), scene->mMaterials);
}
// create the scenegraph
// create the scene-graph
scene->mRootNode->mNumChildren = static_cast<unsigned int>(children.size());
scene->mRootNode->mChildren = new aiNode *[scene->mRootNode->mNumChildren]();
std::copy(children.begin(), children.end(), scene->mRootNode->mChildren);