Merge branch 'master' of https://github.com/singularity-viewer/SingularityViewer into Release
This commit is contained in:
@@ -248,6 +248,7 @@ public:
|
|||||||
void setNeedsAutoRename(BOOL val) { mNeedsAutoRename = val; }
|
void setNeedsAutoRename(BOOL val) { mNeedsAutoRename = val; }
|
||||||
void setPinningSelectedItem(BOOL val) { mPinningSelectedItem = val; }
|
void setPinningSelectedItem(BOOL val) { mPinningSelectedItem = val; }
|
||||||
void setAutoSelectOverride(BOOL val) { mAutoSelectOverride = val; }
|
void setAutoSelectOverride(BOOL val) { mAutoSelectOverride = val; }
|
||||||
|
bool getAutoSelectOverride() const { return mAutoSelectOverride; }
|
||||||
|
|
||||||
BOOL getDebugFilters() { return mDebugFilters; }
|
BOOL getDebugFilters() { return mDebugFilters; }
|
||||||
|
|
||||||
|
|||||||
@@ -173,7 +173,15 @@ void do_create(LLInventoryModel *model, LLInventoryPanel *ptr, const LLSD& sdtyp
|
|||||||
LLFolderType::FT_NONE, LLStringUtil::null);
|
LLFolderType::FT_NONE, LLStringUtil::null);
|
||||||
}
|
}
|
||||||
model->notifyObservers();
|
model->notifyObservers();
|
||||||
|
|
||||||
|
// Singu Note: SV-2036
|
||||||
|
// Hack! setSelection sets category to fetching state, which disables scrolling. Scrolling, however, is desired.
|
||||||
|
// Setting autoSelectOverride to true just happens to skip the fetch check, thus allowing the scroll to proceed.
|
||||||
|
bool autoselected = ptr->getRootFolder()->getAutoSelectOverride();
|
||||||
|
ptr->getRootFolder()->setAutoSelectOverride(true);
|
||||||
ptr->setSelection(category, TRUE);
|
ptr->setSelection(category, TRUE);
|
||||||
|
// Restore autoSelectOverride to whatever it was before we hijacked it.
|
||||||
|
ptr->getRootFolder()->setAutoSelectOverride(autoselected);
|
||||||
}
|
}
|
||||||
else if ("lsl" == type)
|
else if ("lsl" == type)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2315,7 +2315,11 @@ bool LLViewerRegion::meshUploadEnabled() const
|
|||||||
|
|
||||||
bool LLViewerRegion::meshRezEnabled() const
|
bool LLViewerRegion::meshRezEnabled() const
|
||||||
{
|
{
|
||||||
if (getCapability("SimulatorFeatures").empty())
|
if (!capabilitiesReceived())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if (getCapability("SimulatorFeatures").empty())
|
||||||
{
|
{
|
||||||
return !getCapability("GetMesh").empty() || !getCapability("GetMesh2").empty();
|
return !getCapability("GetMesh").empty() || !getCapability("GetMesh2").empty();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user