Enable wearable export

This commit is contained in:
Lirusaito
2019-02-28 20:17:33 -05:00
parent 8e18f2ab43
commit 9630632120
3 changed files with 5 additions and 8 deletions

View File

@@ -503,7 +503,6 @@ void LLFloaterCustomize::onBtnExport()
//static
void LLFloaterCustomize::onBtnExport_continued(LLViewerWearable* edit_wearable, AIFilePicker* filepicker)
{
#if 0
if (!filepicker->hasFilename())
{
// User canceled export.
@@ -529,7 +528,6 @@ void LLFloaterCustomize::onBtnExport_continued(LLViewerWearable* edit_wearable,
{
AIAlert::add_modal("AIXMLExportSuccess", AIArgs("[FILE]", filename));
}
#endif
}
void LLFloaterCustomize::onBtnOk()

View File

@@ -42,6 +42,7 @@
#include "llinventoryfunctions.h"
#include "lllocaltextureobject.h"
#include "llpaneleditwearable.h"
#include "aixmllindengenepool.h"
using namespace LLAvatarAppearanceDefines;
@@ -135,8 +136,8 @@ LLWearable::EImportResult LLViewerWearable::importStream( std::istream& input_st
return result;
}
#if 0
AIArchetype LLViewerWearable::getArchetype(void) const
AIArchetype LLViewerWearable::getArchetype() const
{
AIArchetype archetype(this);
for (visual_param_index_map_t::const_iterator iter = mVisualParamIndexMap.begin(); iter != mVisualParamIndexMap.end(); ++iter)
@@ -149,7 +150,7 @@ AIArchetype LLViewerWearable::getArchetype(void) const
}
return archetype;
}
#endif
// Avatar parameter and texture definitions can change over time.
// This function returns true if parameters or textures have been added or removed
// since this wearable was created.

View File

@@ -68,9 +68,7 @@ public:
/*virtual*/ EImportResult importStream( std::istream& input_stream, LLAvatarAppearance* avatarp );
// Singu extension.
#if 0
AIArchetype getArchetype(void) const;
#endif
class AIArchetype getArchetype() const;
void setParamsToDefaults();
void setTexturesToDefaults();