Crashfix in case pacs_prim are exported into .ig

hg/feature/cdb-packed
kaetemi 10 years ago
parent 0e0de8ec52
commit 683a0adc60

@ -612,6 +612,10 @@ static void computeIGBBox(const NL3D::CInstanceGroup &ig, CLightingBBox &result,
{
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
{
CIFile shapeInputFile;

Loading…
Cancel
Save