This fixes exporter

This commit is contained in:
Siana Gearz
2011-07-12 04:23:48 +02:00
parent 379f4c63ec
commit cf81a4457e
4 changed files with 163 additions and 91 deletions

View File

@@ -2863,15 +2863,10 @@ class LLObjectExport : public view_listener_t
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
{
LLViewerObject* object = LLSelectMgr::getInstance()->getSelection()->getPrimaryObject();
if (!object) return true;
LLVOAvatar* avatar = find_avatar_from_object(object);
if (!avatar)
if (object)
{
LLObjectBackup::getInstance()->exportObject();
}
return true;
}
};