Removed some TOS/TPVp violations that we missed in the last sweep
Fix for the client definitions - Emerald's color is corrected, Emergence now reports properly. Fixed the error "Client crashes if preferences is opened on login screen" Signed-off-by: Beeks <HgDelirium@gmail.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,5 +11,6 @@
|
|||||||
*.rej
|
*.rej
|
||||||
*.bak
|
*.bak
|
||||||
*~
|
*~
|
||||||
|
+/LICENSES
|
||||||
/edited-files.txt
|
/edited-files.txt
|
||||||
qtcreator-build/
|
qtcreator-build/
|
||||||
|
|||||||
@@ -150,7 +150,7 @@
|
|||||||
<real>1</real>
|
<real>1</real>
|
||||||
</array>
|
</array>
|
||||||
<key>multiple</key>
|
<key>multiple</key>
|
||||||
<real>1</real>
|
<real>2</real>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>Emerald</string>
|
<string>Emerald</string>
|
||||||
</map>
|
</map>
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
<real>1</real>
|
<real>1</real>
|
||||||
</array>
|
</array>
|
||||||
<key>multiple</key>
|
<key>multiple</key>
|
||||||
<real>0</real>
|
<real>2</real>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>Emerald</string>
|
<string>Emerald</string>
|
||||||
</map>
|
</map>
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
<real>1</real>
|
<real>1</real>
|
||||||
</array>
|
</array>
|
||||||
<key>multiple</key>
|
<key>multiple</key>
|
||||||
<real>0</real>
|
<real>2</real>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>Emerald</string>
|
<string>Emerald</string>
|
||||||
</map>
|
</map>
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
<real>1</real>
|
<real>1</real>
|
||||||
</array>
|
</array>
|
||||||
<key>multiple</key>
|
<key>multiple</key>
|
||||||
<real>1</real>
|
<real>2</real>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>Emerald</string>
|
<string>Emerald</string>
|
||||||
</map>
|
</map>
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
<real>1</real>
|
<real>1</real>
|
||||||
</array>
|
</array>
|
||||||
<key>multiple</key>
|
<key>multiple</key>
|
||||||
<real>0</real>
|
<real>2</real>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>Emerald</string>
|
<string>Emerald</string>
|
||||||
</map>
|
</map>
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
<real>1</real>
|
<real>1</real>
|
||||||
</array>
|
</array>
|
||||||
<key>multiple</key>
|
<key>multiple</key>
|
||||||
<real>0</real>
|
<real>2</real>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>Emerald</string>
|
<string>Emerald</string>
|
||||||
</map>
|
</map>
|
||||||
@@ -262,7 +262,7 @@
|
|||||||
<real>1</real>
|
<real>1</real>
|
||||||
</array>
|
</array>
|
||||||
<key>multiple</key>
|
<key>multiple</key>
|
||||||
<real>2</real>
|
<real>0</real>
|
||||||
<key>name</key>
|
<key>name</key>
|
||||||
<string>Emergence</string>
|
<string>Emergence</string>
|
||||||
</map>
|
</map>
|
||||||
|
|||||||
@@ -106,6 +106,8 @@ LLPrefsAscentSysImpl::LLPrefsAscentSysImpl()
|
|||||||
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_ascent_system.xml");
|
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_ascent_system.xml");
|
||||||
childSetCommitCallback("speed_rez_check", onCommitCheckBox, this);
|
childSetCommitCallback("speed_rez_check", onCommitCheckBox, this);
|
||||||
childSetCommitCallback("show_look_at_check", onCommitCheckBox, this);
|
childSetCommitCallback("show_look_at_check", onCommitCheckBox, this);
|
||||||
|
childSetCommitCallback("enable_clouds", onCommitCheckBox, this);
|
||||||
|
mEnableClouds = gSavedSettings.getBOOL("CloudsEnabled");
|
||||||
refreshValues();
|
refreshValues();
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
@@ -164,7 +166,11 @@ void LLPrefsAscentSysImpl::refreshValues()
|
|||||||
//Performance -------------------------------------------------------------------------
|
//Performance -------------------------------------------------------------------------
|
||||||
mFetchInventoryOnLogin = gSavedSettings.getBOOL("FetchInventoryOnLogin");
|
mFetchInventoryOnLogin = gSavedSettings.getBOOL("FetchInventoryOnLogin");
|
||||||
mEnableLLWind = gSavedSettings.getBOOL("WindEnabled");
|
mEnableLLWind = gSavedSettings.getBOOL("WindEnabled");
|
||||||
|
if(mEnableClouds != gSavedSettings.getBOOL("CloudsEnabled"))
|
||||||
|
{
|
||||||
mEnableClouds = gSavedSettings.getBOOL("CloudsEnabled");
|
mEnableClouds = gSavedSettings.getBOOL("CloudsEnabled");
|
||||||
|
LLPipeline::toggleRenderTypeControl((void*)LLPipeline::RENDER_TYPE_CLOUDS);
|
||||||
|
}
|
||||||
mSpeedRez = gSavedSettings.getBOOL("SpeedRez");
|
mSpeedRez = gSavedSettings.getBOOL("SpeedRez");
|
||||||
mSpeedRezInterval = gSavedSettings.getU32("SpeedRezInterval");
|
mSpeedRezInterval = gSavedSettings.getU32("SpeedRezInterval");
|
||||||
|
|
||||||
@@ -246,6 +252,7 @@ void LLPrefsAscentSysImpl::refresh()
|
|||||||
childSetValue("fetch_inventory_on_login_check", mFetchInventoryOnLogin);
|
childSetValue("fetch_inventory_on_login_check", mFetchInventoryOnLogin);
|
||||||
childSetValue("enable_wind", mEnableLLWind);
|
childSetValue("enable_wind", mEnableLLWind);
|
||||||
childSetValue("enable_clouds", mEnableClouds);
|
childSetValue("enable_clouds", mEnableClouds);
|
||||||
|
gLLWindEnabled = mEnableLLWind;
|
||||||
childSetValue("speed_rez_check", mSpeedRez);
|
childSetValue("speed_rez_check", mSpeedRez);
|
||||||
if (mSpeedRez)
|
if (mSpeedRez)
|
||||||
{
|
{
|
||||||
@@ -315,6 +322,7 @@ void LLPrefsAscentSysImpl::cancel()
|
|||||||
gSavedSettings.setBOOL("CloudsEnabled", mEnableClouds);
|
gSavedSettings.setBOOL("CloudsEnabled", mEnableClouds);
|
||||||
LLPipeline::toggleRenderTypeControl((void*)LLPipeline::RENDER_TYPE_CLOUDS);
|
LLPipeline::toggleRenderTypeControl((void*)LLPipeline::RENDER_TYPE_CLOUDS);
|
||||||
}
|
}
|
||||||
|
gLLWindEnabled = mEnableLLWind;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLPrefsAscentSysImpl::apply()
|
void LLPrefsAscentSysImpl::apply()
|
||||||
@@ -398,7 +406,7 @@ void LLPrefsAscentSysImpl::apply()
|
|||||||
//Performance ----------------------------------------------------------------------------
|
//Performance ----------------------------------------------------------------------------
|
||||||
gSavedSettings.setBOOL("FetchInventoryOnLogin", childGetValue("fetch_inventory_on_login_check"));
|
gSavedSettings.setBOOL("FetchInventoryOnLogin", childGetValue("fetch_inventory_on_login_check"));
|
||||||
gSavedSettings.setBOOL("WindEnabled", childGetValue("enable_wind"));
|
gSavedSettings.setBOOL("WindEnabled", childGetValue("enable_wind"));
|
||||||
//Missing "Enabled Clouds"
|
gSavedSettings.setBOOL("CloudsEnabled", childGetValue("enable_clouds"));
|
||||||
gSavedSettings.setBOOL("SpeedRez", childGetValue("speed_rez_check"));
|
gSavedSettings.setBOOL("SpeedRez", childGetValue("speed_rez_check"));
|
||||||
gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval").asReal());
|
gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval").asReal());
|
||||||
|
|
||||||
|
|||||||
@@ -148,6 +148,7 @@ void LLPrefsAscentVanImpl::onCommitCheckBox(LLUICtrl* ctrl, void* user_data)
|
|||||||
self->childSetEnabled("custom_tag_label_box", showCustomOptions);
|
self->childSetEnabled("custom_tag_label_box", showCustomOptions);
|
||||||
self->childSetEnabled("custom_tag_color_text", showCustomOptions);
|
self->childSetEnabled("custom_tag_color_text", showCustomOptions);
|
||||||
self->childSetEnabled("custom_tag_color_swatch", showCustomOptions);
|
self->childSetEnabled("custom_tag_color_swatch", showCustomOptions);
|
||||||
|
if (!gAgent.getID().isNull())
|
||||||
gAgent.resetClientTag();
|
gAgent.resetClientTag();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -826,10 +826,13 @@ BOOL LLAgent::getPhantom()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LLAgent::resetClientTag()
|
void LLAgent::resetClientTag()
|
||||||
|
{
|
||||||
|
if (!mAvatarObject.isNull())
|
||||||
{
|
{
|
||||||
llinfos << "Resetting mClientTag." << llendl;
|
llinfos << "Resetting mClientTag." << llendl;
|
||||||
mAvatarObject->mClientTag = "";
|
mAvatarObject->mClientTag = "";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//
|
//
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -383,15 +383,10 @@ void LLPanelFace::getState()
|
|||||||
|
|
||||||
if( objectp
|
if( objectp
|
||||||
&& objectp->getPCode() == LL_PCODE_VOLUME
|
&& objectp->getPCode() == LL_PCODE_VOLUME
|
||||||
// <edit>
|
&& objectp->permModify())
|
||||||
//&& objectp->permModify())
|
|
||||||
)
|
|
||||||
// </edit>
|
|
||||||
{
|
{
|
||||||
// <edit>
|
BOOL editable = objectp->permModify();
|
||||||
//BOOL editable = objectp->permModify();
|
|
||||||
BOOL editable = TRUE;
|
|
||||||
// </edit>
|
|
||||||
|
|
||||||
// only turn on auto-adjust button if there is a media renderer and the media is loaded
|
// only turn on auto-adjust button if there is a media renderer and the media is loaded
|
||||||
childSetEnabled("textbox autofix",FALSE);
|
childSetEnabled("textbox autofix",FALSE);
|
||||||
|
|||||||
@@ -309,7 +309,6 @@ void LLFloaterTexturePicker::setImageID(const LLUUID& image_id)
|
|||||||
mNoCopyTextureSelected = FALSE;
|
mNoCopyTextureSelected = FALSE;
|
||||||
mIsDirty = TRUE;
|
mIsDirty = TRUE;
|
||||||
mImageAssetID = image_id;
|
mImageAssetID = image_id;
|
||||||
/* I'm good, thanks
|
|
||||||
LLUUID item_id = findItemID(mImageAssetID, FALSE);
|
LLUUID item_id = findItemID(mImageAssetID, FALSE);
|
||||||
if (item_id.isNull())
|
if (item_id.isNull())
|
||||||
{
|
{
|
||||||
@@ -327,7 +326,6 @@ void LLFloaterTexturePicker::setImageID(const LLUUID& image_id)
|
|||||||
}
|
}
|
||||||
mInventoryPanel->setSelection(item_id, TAKE_FOCUS_NO);
|
mInventoryPanel->setSelection(item_id, TAKE_FOCUS_NO);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1281,43 +1279,6 @@ BOOL LLTextureCtrl::handleMouseDown(S32 x, S32 y, MASK mask)
|
|||||||
return handled;
|
return handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
// <edit>
|
|
||||||
|
|
||||||
//static
|
|
||||||
void LLTextureCtrl::handleClickOpenTexture(void* userdata)
|
|
||||||
{
|
|
||||||
LLTextureCtrl* clickedTexture = static_cast<LLTextureCtrl*>(userdata);
|
|
||||||
|
|
||||||
if(clickedTexture)
|
|
||||||
LLLocalInventory::addItem(clickedTexture->mImageAssetID.asString(), (int)LLAssetType::AT_TEXTURE, clickedTexture->mImageAssetID, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
//static
|
|
||||||
void LLTextureCtrl::handleClickCopyAssetID(void* userdata)
|
|
||||||
{
|
|
||||||
LLTextureCtrl* clickedTexture = static_cast<LLTextureCtrl*>(userdata);
|
|
||||||
|
|
||||||
if(clickedTexture)
|
|
||||||
gViewerWindow->mWindow->copyTextToClipboard(utf8str_to_wstring(clickedTexture->mImageAssetID.asString()));
|
|
||||||
}
|
|
||||||
|
|
||||||
BOOL LLTextureCtrl::handleRightMouseDown(S32 x, S32 y, MASK mask)
|
|
||||||
{
|
|
||||||
BOOL handled = LLUICtrl::handleRightMouseDown( x, y , mask );
|
|
||||||
if( handled )
|
|
||||||
{
|
|
||||||
LLMenuGL* menu = new LLMenuGL(LLStringUtil::null);
|
|
||||||
menu->append(new LLMenuItemCallGL("Open", LLTextureCtrl::handleClickOpenTexture, NULL, this));
|
|
||||||
menu->append(new LLMenuItemCallGL("Copy Asset UUID", LLTextureCtrl::handleClickCopyAssetID, NULL, this));
|
|
||||||
menu->updateParent(LLMenuGL::sMenuContainer);
|
|
||||||
menu->setCanTearOff(FALSE);
|
|
||||||
LLMenuGL::showPopup(this, menu, x, y);
|
|
||||||
}
|
|
||||||
|
|
||||||
return handled;
|
|
||||||
}
|
|
||||||
// </edit>
|
|
||||||
|
|
||||||
void LLTextureCtrl::onFloaterClose()
|
void LLTextureCtrl::onFloaterClose()
|
||||||
{
|
{
|
||||||
LLFloaterTexturePicker* floaterp = (LLFloaterTexturePicker*)mFloaterHandle.get();
|
LLFloaterTexturePicker* floaterp = (LLFloaterTexturePicker*)mFloaterHandle.get();
|
||||||
@@ -1504,10 +1465,9 @@ BOOL LLTextureCtrl::allowDrop(LLInventoryItem* item)
|
|||||||
|
|
||||||
// PermissionMask filter_perm_mask = mCanApplyImmediately ? commented out due to no-copy texture loss.
|
// PermissionMask filter_perm_mask = mCanApplyImmediately ? commented out due to no-copy texture loss.
|
||||||
// mImmediateFilterPermMask : mNonImmediateFilterPermMask;
|
// mImmediateFilterPermMask : mNonImmediateFilterPermMask;
|
||||||
// <edit>
|
|
||||||
//PermissionMask filter_perm_mask = mImmediateFilterPermMask;
|
PermissionMask filter_perm_mask = mImmediateFilterPermMask;
|
||||||
//if ( (item_perm_mask & filter_perm_mask) == filter_perm_mask )
|
if ( (item_perm_mask & filter_perm_mask) == filter_perm_mask )
|
||||||
// </edit>
|
|
||||||
{
|
{
|
||||||
if(mDragCallback)
|
if(mDragCallback)
|
||||||
{
|
{
|
||||||
@@ -1518,12 +1478,10 @@ BOOL LLTextureCtrl::allowDrop(LLInventoryItem* item)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// <edit>
|
|
||||||
/*else
|
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}*/
|
}
|
||||||
// </edit>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL LLTextureCtrl::doDrop(LLInventoryItem* item)
|
BOOL LLTextureCtrl::doDrop(LLInventoryItem* item)
|
||||||
|
|||||||
@@ -79,9 +79,7 @@ public:
|
|||||||
static LLView* fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory);
|
static LLView* fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory);
|
||||||
|
|
||||||
virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
|
virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
|
||||||
// <edit>
|
|
||||||
virtual BOOL handleRightMouseDown(S32 x, S32 y, MASK mask);
|
|
||||||
// </edit>
|
|
||||||
virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask,
|
virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask,
|
||||||
BOOL drop, EDragAndDropType cargo_type, void *cargo_data,
|
BOOL drop, EDragAndDropType cargo_type, void *cargo_data,
|
||||||
EAcceptance *accept,
|
EAcceptance *accept,
|
||||||
|
|||||||
@@ -69,10 +69,6 @@
|
|||||||
#include "llui.h"
|
#include "llui.h"
|
||||||
#include "llweb.h"
|
#include "llweb.h"
|
||||||
|
|
||||||
// <edit>
|
|
||||||
#include "lllocalinventory.h"
|
|
||||||
// </edit>
|
|
||||||
|
|
||||||
extern void handle_buy(void*);
|
extern void handle_buy(void*);
|
||||||
|
|
||||||
extern BOOL gDebugClicks;
|
extern BOOL gDebugClicks;
|
||||||
@@ -162,26 +158,6 @@ BOOL LLToolPie::pickAndShowMenu(BOOL always_show)
|
|||||||
LLViewerObject *object = mPick.getObject();
|
LLViewerObject *object = mPick.getObject();
|
||||||
LLViewerObject *parent = NULL;
|
LLViewerObject *parent = NULL;
|
||||||
|
|
||||||
// <edit>
|
|
||||||
if(mPick.mKeyMask == MASK_SHIFT)
|
|
||||||
{
|
|
||||||
if(object)
|
|
||||||
{
|
|
||||||
U8 face = mPick.mObjectFace & 0xff;
|
|
||||||
if(face < object->getNumTEs())
|
|
||||||
{
|
|
||||||
LLViewerImage* img = object->getTEImage(face);
|
|
||||||
if(img)
|
|
||||||
{
|
|
||||||
LLUUID image_id = img->getID();
|
|
||||||
LLLocalInventory::addItem(image_id.asString(), (int)LLAssetType::AT_TEXTURE, image_id, true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
// </edit>
|
|
||||||
|
|
||||||
if (mPick.mPickType != LLPickInfo::PICK_LAND)
|
if (mPick.mPickType != LLPickInfo::PICK_LAND)
|
||||||
{
|
{
|
||||||
LLViewerParcelMgr::getInstance()->deselectLand();
|
LLViewerParcelMgr::getInstance()->deselectLand();
|
||||||
|
|||||||
@@ -1659,8 +1659,6 @@ void LLVOAvatar::getSpatialExtents(LLVector3& newMin, LLVector3& newMax)
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void LLVOAvatar::renderCollisionVolumes()
|
void LLVOAvatar::renderCollisionVolumes()
|
||||||
{
|
{
|
||||||
//BLATANTLY STOLEN FROM SIMMAN DURRR
|
|
||||||
LLGLDepthTest gls_depth(GL_FALSE); //make it so the skeleton shows through the mesh and prims (good for milfags)
|
|
||||||
for (S32 i = 0; i < mNumCollisionVolumes; i++)
|
for (S32 i = 0; i < mNumCollisionVolumes; i++)
|
||||||
{
|
{
|
||||||
mCollisionVolumes[i].renderCollision();
|
mCollisionVolumes[i].renderCollision();
|
||||||
|
|||||||
Reference in New Issue
Block a user