Re-add logic for empty model

pull/541/head
Kyle Cooley 6 years ago committed by Andrei Kortunov
parent f43b70d77b
commit 676fc48855

@ -124,11 +124,15 @@ void CSVRender::Object::update()
mActor->update();
mBaseNode->addChild(mActor->getBaseNode());
}
else
else if (!model.empty())
{
std::string path = "meshes\\" + model;
mResourceSystem->getSceneManager()->getInstance(path, mBaseNode);
}
else
{
throw std::runtime_error(mReferenceableId + " has no model");
}
}
catch (std::exception& e)
{

Loading…
Cancel
Save