mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Crashfix in case pacs_prim are exported into .ig
This commit is contained in:
parent
ef9a0d8184
commit
45db7f57eb
1 changed files with 6 additions and 0 deletions
|
@ -408,6 +408,12 @@ void CInstanceLighter::light (const CInstanceGroup &igIn, CInstanceGroup &igOut,
|
|||
string name= _Instances[i].Name;
|
||||
bool shapeFound= true;
|
||||
|
||||
if (toLower (CFile::getExtension (name)) == "pacs_prim")
|
||||
{
|
||||
nlwarning("EXPORT BUG: Can't read %s (not a shape), should not be part of .ig!", name.c_str());
|
||||
continue;
|
||||
}
|
||||
|
||||
// Try to find the shape in the UseShapeMap.
|
||||
std::map<string, IShape*>::const_iterator iteMap= lightDesc.UserShapeMap.find (name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue