Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…arityViewer into Release
  • Loading branch information
LiruMouse committed Jun 25, 2016
2 parents a3c2009 + f77df0a commit 684ab3e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions indra/newview/llfolderview.h
Expand Up @@ -248,6 +248,7 @@ class LLFolderView : public LLFolderViewFolder, public LLEditMenuHandler
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; }


Expand Down
8 changes: 8 additions & 0 deletions indra/newview/llinventoryactions.cpp
Expand Up @@ -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)
{ {
Expand Down
6 changes: 5 additions & 1 deletion indra/newview/llviewerregion.cpp
Expand Up @@ -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();
} }
Expand Down

0 comments on commit 684ab3e

Please sign in to comment.