EXT-3123 cannot decline save for newly created wearable

We weren't marking the initially loaded parameters of a
wearable created through the appearance editor as "saved"
so the client thought the wearable was dirty when it wasn't.
Added a call to mark all parameters as saved right before
sending the wearable to the server.

reviewed by Bigpapi
meow-7.2.2
Nyx (Neal Orman) 2009-12-18 15:04:21 -05:00
parent ad65fa11ac
commit 43d918b7f3
2 changed files with 5 additions and 1 deletions

View File

@ -127,6 +127,7 @@ public:
void setClothesColor( S32 te, const LLColor4& new_color, BOOL upload_bake );
void revertValues();
void saveValues();
BOOL isOnTop() const;
@ -143,7 +144,6 @@ private:
void createLayers(S32 te);
void createVisualParams();
void saveValues();
void syncImages(te_map_t &src, te_map_t &dst);
void destroyTextures();

View File

@ -249,9 +249,13 @@ LLWearable* LLWearableList::createNewWearable( EWearableType type )
wearable->setParamsToDefaults();
wearable->setTexturesToDefaults();
//mark all values (params & images) as saved
wearable->saveValues();
// Send to the dataserver
wearable->saveNewAsset();
return wearable;
}