mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Re-add logic for empty model
This commit is contained in:
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…
Reference in New Issue
Block a user