Preload instances in SceneManager

This commit is contained in:
scrawl 2016-02-09 18:33:02 +01:00
parent 2e62298bd3
commit e28dc3e72f
16 changed files with 207 additions and 27 deletions

View file

@ -100,7 +100,7 @@ void CSVRender::Object::update()
{
std::string path = "meshes\\" + model;
mResourceSystem->getSceneManager()->createInstance(path, mBaseNode);
mResourceSystem->getSceneManager()->getInstance(path, mBaseNode);
}
catch (std::exception& e)
{