Merge branch 'DRTVWR-553-maint-mix-JK' of https://bitbucket.org/lindenlab/viewer
commit
3e81ce279b
|
|
@ -40,6 +40,7 @@
|
|||
#include "llagent.h"
|
||||
#include "llbutton.h"
|
||||
#include "llcombobox.h"
|
||||
#include "llfloaterreg.h"
|
||||
#include "llfocusmgr.h"
|
||||
#include "llmeshrepository.h"
|
||||
#include "llnotificationsutil.h"
|
||||
|
|
@ -395,6 +396,17 @@ void LLFloaterModelPreview::initModelPreview()
|
|||
mModelPreview->setModelUpdatedCallback(boost::bind(&LLFloaterModelPreview::modelUpdated, this, _1));
|
||||
}
|
||||
|
||||
//static
|
||||
bool LLFloaterModelPreview::showModelPreview()
|
||||
{
|
||||
LLFloaterModelPreview* fmp = (LLFloaterModelPreview*)LLFloaterReg::getInstance("upload_model");
|
||||
if (fmp && !fmp->isModelLoading())
|
||||
{
|
||||
fmp->loadHighLodModel();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void LLFloaterModelPreview::onUploadOptionChecked(LLUICtrl* ctrl)
|
||||
{
|
||||
if (mModelPreview)
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ public:
|
|||
/*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
|
||||
|
||||
void initModelPreview();
|
||||
static bool showModelPreview();
|
||||
|
||||
BOOL handleMouseDown(S32 x, S32 y, MASK mask);
|
||||
BOOL handleMouseUp(S32 x, S32 y, MASK mask);
|
||||
|
|
|
|||
|
|
@ -573,13 +573,8 @@ class LLFileUploadModel : public view_listener_t
|
|||
{
|
||||
bool handleEvent(const LLSD& userdata)
|
||||
{
|
||||
LLFloaterModelPreview* fmp = (LLFloaterModelPreview*) LLFloaterReg::getInstance("upload_model");
|
||||
if (fmp && !fmp->isModelLoading())
|
||||
{
|
||||
fmp->loadHighLodModel();
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
LLFloaterModelPreview::showModelPreview();
|
||||
return TRUE;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -12,5 +12,7 @@
|
|||
<true/>
|
||||
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
||||
<true/>
|
||||
<key>com.apple.security.device.audio-input</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
|||
Loading…
Reference in New Issue