that should mostly be it for local inventory
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "llinventorymodel.h" // gInventory.updateItem
|
||||
#include "llappviewer.h" // gLocalInventoryRoot
|
||||
#include "llfloaterperms.h" //get default perms
|
||||
#include "lllocalinventory.h"
|
||||
|
||||
std::list<HGFloaterTextEditor*> HGFloaterTextEditor::sInstances;
|
||||
S32 HGFloaterTextEditor::sUploadAmount = 10;
|
||||
@@ -224,10 +225,10 @@ void HGFloaterTextEditor::assetCallback(LLVFS *vfs,
|
||||
}
|
||||
|
||||
// Never enable save if it's a pretend item
|
||||
/* if(gInventory.isObjectDescendentOf(item->getUUID(), gLocalInventoryRoot))
|
||||
if(gInventory.isObjectDescendentOf(item->getUUID(), gLocalInventoryRoot))
|
||||
{
|
||||
floater->childSetEnabled("save_btn", false);
|
||||
} */
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
@@ -264,7 +265,6 @@ void HGFloaterTextEditor::onClickUpload(void* user_data)
|
||||
if(item->getType() != LLAssetType::AT_GESTURE && item->getType() != LLAssetType::AT_LSL_TEXT
|
||||
&& item->getType() != LLAssetType::AT_NOTECARD)
|
||||
{
|
||||
//U32 const std::string &display_name, LLAssetStorage::LLStoreAssetCallback callback, S32 expected_upload_cost, void *userdata)
|
||||
upload_new_resource(transaction_id,
|
||||
item->getType(),
|
||||
item->getName(),
|
||||
|
||||
Reference in New Issue
Block a user