SH-842 Hide "Model" option in upload menu
parent
96c6200f72
commit
ae292e00bb
|
|
@ -53,6 +53,7 @@
|
|||
#include "llvfs.h"
|
||||
#include "llviewerinventory.h"
|
||||
#include "llviewermenu.h" // gMenuHolder
|
||||
#include "llviewerparcelmgr.h"
|
||||
#include "llviewerregion.h"
|
||||
#include "llviewerstats.h"
|
||||
#include "llviewerwindow.h"
|
||||
|
|
@ -102,6 +103,14 @@ class LLMeshEnabled : public view_listener_t
|
|||
}
|
||||
};
|
||||
|
||||
class LLMeshUploadVisible : public view_listener_t
|
||||
{
|
||||
bool handleEvent(const LLSD& userdata)
|
||||
{
|
||||
return LLViewerParcelMgr::getInstance()->allowAgentBuild() && !gAgent.getRegion()->getCapability("ObjectAdd").empty();
|
||||
}
|
||||
};
|
||||
|
||||
LLMutex* LLFilePickerThread::sMutex = NULL;
|
||||
std::queue<LLFilePickerThread*> LLFilePickerThread::sDeadQ;
|
||||
|
||||
|
|
@ -1390,6 +1399,7 @@ void init_menu_file()
|
|||
view_listener_t::addEnable(new LLFileEnableUpload(), "File.EnableUpload");
|
||||
view_listener_t::addEnable(new LLFileEnableUploadModel(), "File.EnableUploadModel");
|
||||
view_listener_t::addMenu(new LLMeshEnabled(), "File.MeshEnabled");
|
||||
view_listener_t::addMenu(new LLMeshUploadVisible(), "File.VisibleUploadModel");
|
||||
|
||||
// "File.SaveTexture" moved to llpanelmaininventory so that it can be properly handled.
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
<menu_item_call.on_enable
|
||||
function="File.EnableUploadModel" />
|
||||
<menu_item_call.on_visible
|
||||
function="File.MeshEnabled"/>
|
||||
function="File.VisibleUploadModel"/>
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Bulk (L$[COST] per file)..."
|
||||
|
|
|
|||
|
|
@ -970,7 +970,7 @@
|
|||
<menu_item_call.on_enable
|
||||
function="File.EnableUploadModel" />
|
||||
<menu_item_call.on_visible
|
||||
function="File.MeshEnabled"/>
|
||||
function="File.VisibleUploadModel"/>
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Model Wizard..."
|
||||
|
|
@ -982,7 +982,7 @@
|
|||
<menu_item_call.on_enable
|
||||
function="File.EnableUploadModel" />
|
||||
<menu_item_call.on_visible
|
||||
function="File.MeshEnabled"/>
|
||||
function="File.VisibleUploadModel"/>
|
||||
</menu_item_call>
|
||||
<menu_item_call
|
||||
label="Bulk (L$[COST] per file)..."
|
||||
|
|
|
|||
Loading…
Reference in New Issue