mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Fix loading of entities in scene graph example
This commit is contained in:
@@ -109,7 +109,6 @@ int main()
|
|||||||
|
|
||||||
for (unsigned int i = 0; i < 10; ++i)
|
for (unsigned int i = 0; i < 10; ++i)
|
||||||
{
|
{
|
||||||
Model model = Model(FileSystem::getPath("resources/objects/planet/planet.obj"));
|
|
||||||
lastEntity->addChild(model);
|
lastEntity->addChild(model);
|
||||||
lastEntity = lastEntity->children.back().get();
|
lastEntity = lastEntity->children.back().get();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user