MAINT-8924 FIXED Outfit snapshot upload closes inventory
parent
e24d4c9f4d
commit
e282be5549
|
|
@ -1090,11 +1090,6 @@ void LLOutfitGallery::refreshOutfit(const LLUUID& category_id)
|
|||
updates["name"] = new_name;
|
||||
update_inventory_item(inv_id, updates, NULL);
|
||||
mOutfitRenamePending.setNull();
|
||||
LLFloater* inv_floater = LLFloaterReg::getInstance("inventory");
|
||||
if (inv_floater)
|
||||
{
|
||||
inv_floater->closeFloater();
|
||||
}
|
||||
LLFloater* appearance_floater = LLFloaterReg::getInstance("appearance");
|
||||
if (appearance_floater)
|
||||
{
|
||||
|
|
@ -1228,7 +1223,7 @@ void LLOutfitGallery::uploadOutfitImage(const std::vector<std::string>& filename
|
|||
LLFloaterPerms::getNextOwnerPerms("Uploads"),
|
||||
LLFloaterPerms::getGroupPerms("Uploads"),
|
||||
LLFloaterPerms::getEveryonePerms("Uploads"),
|
||||
upload_pending_name, callback, expected_upload_cost, nruserdata);
|
||||
upload_pending_name, callback, expected_upload_cost, nruserdata, false);
|
||||
mOutfitLinkPending = outfit_id;
|
||||
}
|
||||
delete unit;
|
||||
|
|
|
|||
|
|
@ -1050,7 +1050,7 @@ void LLSnapshotLivePreview::saveTexture(BOOL outfit_snapshot, std::string name)
|
|||
tid, LLAssetType::AT_TEXTURE, res_name, res_desc, 0,
|
||||
folder_type, inv_type,
|
||||
PERM_ALL, LLFloaterPerms::getGroupPerms("Uploads"), LLFloaterPerms::getEveryonePerms("Uploads"),
|
||||
expected_upload_cost));
|
||||
expected_upload_cost, !outfit_snapshot));
|
||||
|
||||
upload_new_resource(assetUploadInfo);
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ LLResourceUploadInfo::LLResourceUploadInfo(LLTransactionID transactId,
|
|||
LLAssetType::EType assetType, std::string name, std::string description,
|
||||
S32 compressionInfo, LLFolderType::EType destinationType,
|
||||
LLInventoryType::EType inventoryType, U32 nextOWnerPerms,
|
||||
U32 groupPerms, U32 everyonePerms, S32 expectedCost) :
|
||||
U32 groupPerms, U32 everyonePerms, S32 expectedCost, bool showInventory) :
|
||||
mTransactionId(transactId),
|
||||
mAssetType(assetType),
|
||||
mName(name),
|
||||
|
|
@ -72,6 +72,7 @@ LLResourceUploadInfo::LLResourceUploadInfo(LLTransactionID transactId,
|
|||
mGroupPerms(groupPerms),
|
||||
mEveryonePerms(everyonePerms),
|
||||
mExpectedUploadCost(expectedCost),
|
||||
mShowInventory(showInventory),
|
||||
mFolderId(LLUUID::null),
|
||||
mItemId(LLUUID::null),
|
||||
mAssetId(LLAssetID::null)
|
||||
|
|
@ -81,7 +82,7 @@ LLResourceUploadInfo::LLResourceUploadInfo(LLTransactionID transactId,
|
|||
LLResourceUploadInfo::LLResourceUploadInfo(std::string name,
|
||||
std::string description, S32 compressionInfo,
|
||||
LLFolderType::EType destinationType, LLInventoryType::EType inventoryType,
|
||||
U32 nextOWnerPerms, U32 groupPerms, U32 everyonePerms, S32 expectedCost):
|
||||
U32 nextOWnerPerms, U32 groupPerms, U32 everyonePerms, S32 expectedCost, bool showInventory) :
|
||||
mName(name),
|
||||
mDescription(description),
|
||||
mCompressionInfo(compressionInfo),
|
||||
|
|
@ -91,6 +92,7 @@ LLResourceUploadInfo::LLResourceUploadInfo(std::string name,
|
|||
mGroupPerms(groupPerms),
|
||||
mEveryonePerms(everyonePerms),
|
||||
mExpectedUploadCost(expectedCost),
|
||||
mShowInventory(showInventory),
|
||||
mTransactionId(),
|
||||
mAssetType(LLAssetType::AT_NONE),
|
||||
mFolderId(LLUUID::null),
|
||||
|
|
@ -112,6 +114,7 @@ LLResourceUploadInfo::LLResourceUploadInfo(LLAssetID assetId, LLAssetType::EType
|
|||
mGroupPerms(0),
|
||||
mEveryonePerms(0),
|
||||
mExpectedUploadCost(0),
|
||||
mShowInventory(true),
|
||||
mTransactionId(),
|
||||
mFolderId(LLUUID::null),
|
||||
mItemId(LLUUID::null)
|
||||
|
|
@ -331,10 +334,11 @@ LLNewFileResourceUploadInfo::LLNewFileResourceUploadInfo(
|
|||
U32 nextOWnerPerms,
|
||||
U32 groupPerms,
|
||||
U32 everyonePerms,
|
||||
S32 expectedCost) :
|
||||
S32 expectedCost,
|
||||
bool show_inventory) :
|
||||
LLResourceUploadInfo(name, description, compressionInfo,
|
||||
destinationType, inventoryType,
|
||||
nextOWnerPerms, groupPerms, everyonePerms, expectedCost),
|
||||
nextOWnerPerms, groupPerms, everyonePerms, expectedCost, show_inventory),
|
||||
mFileName(fileName)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,8 @@ public:
|
|||
U32 nextOWnerPerms,
|
||||
U32 groupPerms,
|
||||
U32 everyonePerms,
|
||||
S32 expectedCost);
|
||||
S32 expectedCost,
|
||||
bool showInventory = true);
|
||||
|
||||
virtual ~LLResourceUploadInfo()
|
||||
{ }
|
||||
|
|
@ -79,7 +80,7 @@ public:
|
|||
S32 getExpectedUploadCost() const { return mExpectedUploadCost; };
|
||||
|
||||
virtual bool showUploadDialog() const { return true; }
|
||||
virtual bool showInventoryPanel() const { return true; }
|
||||
virtual bool showInventoryPanel() const { return mShowInventory; }
|
||||
|
||||
virtual std::string getDisplayName() const;
|
||||
|
||||
|
|
@ -97,7 +98,8 @@ protected:
|
|||
U32 nextOWnerPerms,
|
||||
U32 groupPerms,
|
||||
U32 everyonePerms,
|
||||
S32 expectedCost);
|
||||
S32 expectedCost,
|
||||
bool showInventory = true);
|
||||
|
||||
LLResourceUploadInfo(
|
||||
LLAssetID assetId,
|
||||
|
|
@ -130,6 +132,7 @@ private:
|
|||
LLUUID mFolderId;
|
||||
LLUUID mItemId;
|
||||
LLAssetID mAssetId;
|
||||
bool mShowInventory;
|
||||
};
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
|
@ -146,7 +149,8 @@ public:
|
|||
U32 nextOWnerPerms,
|
||||
U32 groupPerms,
|
||||
U32 everyonePerms,
|
||||
S32 expectedCost);
|
||||
S32 expectedCost,
|
||||
bool show_inventory = true);
|
||||
|
||||
virtual LLSD prepareUpload();
|
||||
|
||||
|
|
|
|||
|
|
@ -689,7 +689,8 @@ LLUUID upload_new_resource(
|
|||
const std::string& display_name,
|
||||
LLAssetStorage::LLStoreAssetCallback callback,
|
||||
S32 expected_upload_cost,
|
||||
void *userdata)
|
||||
void *userdata,
|
||||
bool show_inventory)
|
||||
{
|
||||
|
||||
LLResourceUploadInfo::ptr_t uploadInfo(new LLNewFileResourceUploadInfo(
|
||||
|
|
@ -697,7 +698,7 @@ LLUUID upload_new_resource(
|
|||
name, desc, compression_info,
|
||||
destination_folder_type, inv_type,
|
||||
next_owner_perms, group_perms, everyone_perms,
|
||||
expected_upload_cost));
|
||||
expected_upload_cost, show_inventory));
|
||||
upload_new_resource(uploadInfo, callback, userdata);
|
||||
|
||||
return LLUUID::null;
|
||||
|
|
|
|||
|
|
@ -55,7 +55,8 @@ LLUUID upload_new_resource(
|
|||
const std::string& display_name,
|
||||
LLAssetStorage::LLStoreAssetCallback callback,
|
||||
S32 expected_upload_cost,
|
||||
void *userdata);
|
||||
void *userdata,
|
||||
bool show_inventory = true);
|
||||
|
||||
void upload_new_resource(
|
||||
LLResourceUploadInfo::ptr_t &uploadInfo,
|
||||
|
|
|
|||
Loading…
Reference in New Issue