Merge
commit
2f90bb65e4
|
|
@ -1548,9 +1548,9 @@ void LLWindowWin32::initCursors()
|
|||
// Color cursors
|
||||
gDirUtilp->getExpandedFilename(LL_PATH_EXECUTABLE, "res", "toolbuy.cur");
|
||||
|
||||
mCursor[UI_CURSOR_TOOLSIT] = LoadCursorFromFile(utf8str_to_utf16str(gDirUtilp->getWorkingDir() + gDirUtilp->getDirDelimiter() + "res" + gDirUtilp->getDirDelimiter() + "toolsit.cur").c_str());
|
||||
mCursor[UI_CURSOR_TOOLBUY] = LoadCursorFromFile(utf8str_to_utf16str(gDirUtilp->getWorkingDir() + gDirUtilp->getDirDelimiter() + "res" + gDirUtilp->getDirDelimiter() + "toolbuy.cur").c_str());
|
||||
mCursor[UI_CURSOR_TOOLOPEN] = LoadCursorFromFile(utf8str_to_utf16str(gDirUtilp->getWorkingDir() + gDirUtilp->getDirDelimiter() + "res" + gDirUtilp->getDirDelimiter() + "toolopen.cur").c_str());
|
||||
mCursor[UI_CURSOR_TOOLSIT] = LoadCursorFromFile(utf8str_to_utf16str(gDirUtilp->findSkinnedFilename("textures", "toolsit.cur")).c_str());
|
||||
mCursor[UI_CURSOR_TOOLBUY] = LoadCursorFromFile(utf8str_to_utf16str(gDirUtilp->findSkinnedFilename("textures", "toolbuy.cur")).c_str());
|
||||
mCursor[UI_CURSOR_TOOLOPEN] = LoadCursorFromFile(utf8str_to_utf16str(gDirUtilp->findSkinnedFilename("textures", "toolopen.cur")).c_str());
|
||||
mCursor[UI_CURSOR_TOOLPLAY] = loadColorCursor(TEXT("TOOLPLAY"));
|
||||
mCursor[UI_CURSOR_TOOLPAUSE] = loadColorCursor(TEXT("TOOLPAUSE"));
|
||||
mCursor[UI_CURSOR_TOOLMEDIAOPEN] = loadColorCursor(TEXT("TOOLMEDIAOPEN"));
|
||||
|
|
|
|||
|
|
@ -2296,11 +2296,6 @@ void LLAgent::stopAutoPilot(BOOL user_cancel)
|
|||
{
|
||||
resetAxes(mAutoPilotTargetFacing);
|
||||
}
|
||||
// If the user cancelled, don't change the fly state
|
||||
if (!user_cancel)
|
||||
{
|
||||
setFlying(mAutoPilotFlyOnStop);
|
||||
}
|
||||
//NB: auto pilot can terminate for a reason other than reaching the destination
|
||||
if (mAutoPilotFinishedCallback)
|
||||
{
|
||||
|
|
@ -2308,6 +2303,11 @@ void LLAgent::stopAutoPilot(BOOL user_cancel)
|
|||
}
|
||||
mLeaderID = LLUUID::null;
|
||||
|
||||
// If the user cancelled, don't change the fly state
|
||||
if (!user_cancel)
|
||||
{
|
||||
setFlying(mAutoPilotFlyOnStop);
|
||||
}
|
||||
setControlFlags(AGENT_CONTROL_STOP);
|
||||
|
||||
if (user_cancel && !mAutoPilotBehaviorName.empty())
|
||||
|
|
|
|||
|
|
@ -2985,8 +2985,9 @@ bool LLViewerMediaImpl::shouldShowBasedOnClass() const
|
|||
// " outside = " << (!inside_parcel && gSavedSettings.getBOOL(LLViewerMedia::SHOW_MEDIA_OUTSIDE_PARCEL_SETTING)) << llendl;
|
||||
|
||||
// If it has focus, we should show it
|
||||
if (hasFocus())
|
||||
return true;
|
||||
// This is incorrect, and causes EXT-6750 (disabled attachment media still plays)
|
||||
// if (hasFocus())
|
||||
// return true;
|
||||
|
||||
// If it is attached to an avatar and the pref is off, we shouldn't show it
|
||||
if (attached_to_another_avatar)
|
||||
|
|
|
|||
|
|
@ -5619,8 +5619,6 @@ void LLVOAvatar::sitDown(BOOL bSitting)
|
|||
//-----------------------------------------------------------------------------
|
||||
void LLVOAvatar::sitOnObject(LLViewerObject *sit_object)
|
||||
{
|
||||
sitDown(TRUE);
|
||||
|
||||
if (isSelf())
|
||||
{
|
||||
// Might be first sit
|
||||
|
|
@ -5653,6 +5651,7 @@ void LLVOAvatar::sitOnObject(LLViewerObject *sit_object)
|
|||
mDrawable->mXform.setRotation(mDrawable->getWorldRotation() * inv_obj_rot);
|
||||
|
||||
gPipeline.markMoved(mDrawable, TRUE);
|
||||
sitDown(TRUE);
|
||||
mRoot.getXform()->setParent(&sit_object->mDrawable->mXform); // LLVOAvatar::sitOnObject
|
||||
mRoot.setPosition(getPosition());
|
||||
mRoot.updateWorldMatrixChildren();
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
|
|
@ -119,9 +119,6 @@ TOOLPIPETTE CURSOR "toolpipette.cur"
|
|||
TOOLPLAY CURSOR "toolplay.cur"
|
||||
TOOLPAUSE CURSOR "toolpause.cur"
|
||||
TOOLMEDIAOPEN CURSOR "toolmediaopen.cur"
|
||||
TOOLOPEN CURSOR "toolopen.cur"
|
||||
TOOLSIT CURSOR "toolsit.cur"
|
||||
TOOLBUY CURSOR "toolbuy.cur"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue