1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Re-add logic for empty model

This commit is contained in:
Kyle Cooley 2018-09-08 02:24:33 -04:00 committed by Andrei Kortunov
parent f43b70d77b
commit 676fc48855

View file

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