Avoid crashing when trying to export non-volumes

This commit is contained in:
Latif Khalifa
2013-07-15 19:12:01 +02:00
parent dc24e1b038
commit e0473b5292

View File

@@ -142,7 +142,7 @@ namespace DAEExportUtil
{
total++;
LLSelectNode* node = *iter;
if (!canExportNode(node)) continue;
if (!canExportNode(node) || !node->getObject()->getVolume()) continue;
included++;
daesaver->Add(node->getObject(), node->mName);
}