summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpaneleditwearable.cpp11
-rw-r--r--indra/newview/llpaneleditwearable.h1
2 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/llpaneleditwearable.cpp b/indra/newview/llpaneleditwearable.cpp
index 997edbab07..ad55936cab 100644
--- a/indra/newview/llpaneleditwearable.cpp
+++ b/indra/newview/llpaneleditwearable.cpp
@@ -1071,6 +1071,12 @@ void LLIncrementCofVersionResponder::error(U32 pStatus, const std::string& pReas
}
//static
+void LLPanelEditWearable::incrementCofVersion()
+{
+ incrementCofVersion(0);
+}
+
+//static
void LLPanelEditWearable::incrementCofVersion(S32 retries)
{
// Create a response handler
@@ -1125,7 +1131,10 @@ void LLPanelEditWearable::saveChanges(bool force_save_as)
gAgentWearables.saveWearable(mWearablePtr->getType(), index, TRUE, new_name);
}
- LLPanelEditWearable::incrementCofVersion(0);
+ if (gAgentAvatarp->isUsingServerBakes())
+ {
+ LLPanelEditWearable::incrementCofVersion(0);
+ }
}
void LLPanelEditWearable::revertChanges()
diff --git a/indra/newview/llpaneleditwearable.h b/indra/newview/llpaneleditwearable.h
index 9c9eac791e..67217f8751 100644
--- a/indra/newview/llpaneleditwearable.h
+++ b/indra/newview/llpaneleditwearable.h
@@ -78,6 +78,7 @@ public:
virtual void setVisible(BOOL visible);
+ static void incrementCofVersion();
static void incrementCofVersion(S32 retries);
private: