summaryrefslogtreecommitdiff
path: root/indra/newview/llaisapi.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2013-11-25 16:52:58 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2013-11-25 16:52:58 -0500
commitc0d780cb4473c02e885c67fbc1bc30e87536d1b8 (patch)
treeeae277332834320c64ebcce3e4e90e5247aeca41 /indra/newview/llaisapi.cpp
parentfd2d81223697bad850b979f308c271ca370eccd3 (diff)
SH-4613 WIP - add CREATE mask bit for newly created items in AISUpdate::doUpdate() - needed for some inventory observers.
Diffstat (limited to 'indra/newview/llaisapi.cpp')
-rwxr-xr-xindra/newview/llaisapi.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llaisapi.cpp b/indra/newview/llaisapi.cpp
index 14978662f6..38eb34676e 100755
--- a/indra/newview/llaisapi.cpp
+++ b/indra/newview/llaisapi.cpp
@@ -33,6 +33,7 @@
#include "llinventorymodel.h"
#include "llsdutil.h"
#include "llviewerregion.h"
+#include "llinventoryobserver.h"
///----------------------------------------------------------------------------
/// Classes for AISv3 support.
@@ -781,7 +782,7 @@ void AISUpdate::doUpdate()
LLUUID category_id(create_it->first);
LLPointer<LLViewerInventoryCategory> new_category = create_it->second;
- gInventory.updateCategory(new_category);
+ gInventory.updateCategory(new_category, LLInventoryObserver::CREATE);
LL_DEBUGS("Inventory") << "created category " << category_id << LL_ENDL;
}
@@ -818,7 +819,7 @@ void AISUpdate::doUpdate()
// cases. Maybe break out the update/create cases, in which
// case this is create.
LL_DEBUGS("Inventory") << "created item " << item_id << LL_ENDL;
- gInventory.updateItem(new_item);
+ gInventory.updateItem(new_item, LLInventoryObserver::CREATE);
}
// UPDATE ITEMS