From 8fe42955e3e3266c73bda4494c40130f23ab46d4 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 2 Apr 2016 18:31:58 +0200 Subject: [PATCH] Appearance-SyncAttach: Re-add missing UUID parsing for the CreateInventory AIS command (hopefully...) --- indra/newview/llaisapi.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/indra/newview/llaisapi.cpp b/indra/newview/llaisapi.cpp index 0bbaf490f0..79fc82fa41 100755 --- a/indra/newview/llaisapi.cpp +++ b/indra/newview/llaisapi.cpp @@ -411,7 +411,18 @@ void AISAPI::InvokeAISCommandCoro(LLCoreHttpUtil::HttpCoroutineAdapter::ptr_t ht { id = result["category_id"]; } - + // - Patch: Appearance-SyncAttach + else if (type == COPYINVENTORY) + { + uuid_list_t ids; + AISUpdate::parseUUIDArray(result, "_created_items", ids); + AISUpdate::parseUUIDArray(result, "_created_categories", ids); + if (!ids.empty()) + { + id = *ids.begin(); + } + } + // callback(id); }