summaryrefslogtreecommitdiff
path: root/indra/newview/llagentwearables.cpp
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2012-06-12 14:26:53 -0400
committerJonathan Yap <none@none>2012-06-12 14:26:53 -0400
commit052dc3982056d822a523394954c277d9eb7c7ab9 (patch)
tree57af33b0c423c658471305cf42e00f0f9ed5992d /indra/newview/llagentwearables.cpp
parentb6df9b6d56108bcf4b3e8dfd875ef76a9b6f448b (diff)
STORM-68 Fix for group perms not being defined correctly and fix for group and everyone perms failing to copy and paste
Diffstat (limited to 'indra/newview/llagentwearables.cpp')
-rw-r--r--indra/newview/llagentwearables.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp
index 7017357346..654a785a1a 100644
--- a/indra/newview/llagentwearables.cpp
+++ b/indra/newview/llagentwearables.cpp
@@ -66,21 +66,18 @@ class LLWearAndEditCallback : public LLInventoryCallback
{
void fire(const LLUUID& inv_item)
{
-llwarns << "DBG 1" << llendl;
if (inv_item.isNull()) return;
-llwarns << "DBG 2" << llendl;
LLViewerInventoryItem* item = gInventory.getItem(inv_item);
if (!item) return;
-llwarns << "DBG 3" << llendl;
LLPermissions perm = item->getPermissions();
perm.setMaskNext(LLFloaterPerms::getNextOwnerPerms("Wearables"));
perm.setMaskEveryone(LLFloaterPerms::getEveryonePerms("Wearables"));
perm.setMaskGroup(LLFloaterPerms::getGroupPerms("Wearables"));
item->setPermissions(perm);
-llwarns << "DBG 4" << llendl;
+ item->updateServer(FALSE);
gInventory.updateItem(item);
gInventory.notifyObservers();
@@ -108,6 +105,7 @@ class LLCreateWearableCallback : public LLInventoryCallback
perm.setMaskGroup(LLFloaterPerms::getGroupPerms("Wearables"));
item->setPermissions(perm);
+ item->updateServer(FALSE);
gInventory.updateItem(item);
gInventory.notifyObservers();
}
@@ -521,6 +519,7 @@ void LLAgentWearables::saveWearableAs(const LLWearableType::EType type,
LLWearable* new_wearable = LLWearableList::instance().createCopy(
old_wearable,
trunc_name);
+
LLPointer<LLInventoryCallback> cb =
new addWearableToAgentInventoryCallback(
LLPointer<LLRefCount>(NULL),