mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-30 03:11:33 +00:00
cell.hpp/insertObj: don't load empty mesh names
This commit is contained in:
parent
6b6e42b641
commit
522a5bbaf6
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ namespace MWRender
|
||||||
void insertObj(const T& liveRef)
|
void insertObj(const T& liveRef)
|
||||||
{
|
{
|
||||||
assert (liveRef.base != NULL);
|
assert (liveRef.base != NULL);
|
||||||
insertMesh ("meshes\\" + liveRef.base->model, liveRef.ref);
|
const std::string &model = liveRef.base->model;
|
||||||
|
if(!model.empty())
|
||||||
|
insertMesh ("meshes\\" + model, liveRef.ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
Loading…
Reference in a new issue