Crashfix in case pacs_prim are exported into .ig
This commit is contained in:
parent
0e0de8ec52
commit
683a0adc60
1 changed files with 5 additions and 1 deletions
|
@ -607,11 +607,15 @@ static void computeIGBBox(const NL3D::CInstanceGroup &ig, CLightingBBox &result,
|
||||||
std::string toLoad = it->Name;
|
std::string toLoad = it->Name;
|
||||||
if (getExt(toLoad).empty()) toLoad += ".shape";
|
if (getExt(toLoad).empty()) toLoad += ".shape";
|
||||||
shapePathName = NLMISC::CPath::lookup(toLoad, false, false);
|
shapePathName = NLMISC::CPath::lookup(toLoad, false, false);
|
||||||
|
|
||||||
if (shapePathName.empty())
|
if (shapePathName.empty())
|
||||||
{
|
{
|
||||||
nlwarning("Unable to find shape '%s'", it->Name.c_str());
|
nlwarning("Unable to find shape '%s'", it->Name.c_str());
|
||||||
}
|
}
|
||||||
|
else if (toLower (CFile::getExtension (shapePathName)) == "pacs_prim")
|
||||||
|
{
|
||||||
|
nlwarning("EXPORT BUG: Can't read %s (not a shape), should not be part of .ig!", shapePathName.c_str());
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CIFile shapeInputFile;
|
CIFile shapeInputFile;
|
||||||
|
|
Loading…
Reference in a new issue