Merge viewer-bear
commit
a1023dd89c
|
|
@ -495,17 +495,15 @@ bool LLImageGL::checkSize(S32 width, S32 height)
|
|||
return check_power_of_two(width) && check_power_of_two(height);
|
||||
}
|
||||
|
||||
void LLImageGL::setSize(S32 width, S32 height, S32 ncomponents, S32 discard_level)
|
||||
bool LLImageGL::setSize(S32 width, S32 height, S32 ncomponents, S32 discard_level)
|
||||
{
|
||||
if (width != mWidth || height != mHeight || ncomponents != mComponents)
|
||||
{
|
||||
// Check if dimensions are a power of two!
|
||||
if (!checkSize(width,height))
|
||||
{
|
||||
// <FS:CR> FIRE-8063: Don't error out if texture has non power of two dimensions, just warn us
|
||||
//LL_ERRS() << llformat("Texture has non power of two dimension: %dx%d",width,height) << LL_ENDL;
|
||||
LL_WARNS() << llformat("Texture has non power of two dimension: %dx%d",width,height) << LL_ENDL;
|
||||
// </FS:CR>
|
||||
return false;
|
||||
}
|
||||
|
||||
if (mTexName)
|
||||
|
|
@ -540,6 +538,8 @@ void LLImageGL::setSize(S32 width, S32 height, S32 ncomponents, S32 discard_leve
|
|||
mMaxDiscardLevel = MAX_DISCARD_LEVEL;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
@ -920,7 +920,11 @@ BOOL LLImageGL::preAddToAtlas(S32 discard_level, const LLImageRaw* raw_image)
|
|||
S32 h = raw_image->getHeight() << discard_level;
|
||||
|
||||
// setSize may call destroyGLTexture if the size does not match
|
||||
setSize(w, h, raw_image->getComponents(), discard_level);
|
||||
if (!setSize(w, h, raw_image->getComponents(), discard_level))
|
||||
{
|
||||
LL_WARNS() << "Trying to create a texture with incorrect dimensions!" << LL_ENDL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if( !mHasExplicitFormat )
|
||||
{
|
||||
|
|
@ -1284,7 +1288,11 @@ BOOL LLImageGL::createGLTexture(S32 discard_level, const LLImageRaw* imageraw, S
|
|||
S32 h = raw_h << discard_level;
|
||||
|
||||
// setSize may call destroyGLTexture if the size does not match
|
||||
setSize(w, h, imageraw->getComponents(), discard_level);
|
||||
if (!setSize(w, h, imageraw->getComponents(), discard_level))
|
||||
{
|
||||
LL_WARNS() << "Trying to create a texture with incorrect dimensions!" << LL_ENDL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if( !mHasExplicitFormat )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ protected:
|
|||
public:
|
||||
virtual void dump(); // debugging info to LL_INFOS()
|
||||
|
||||
void setSize(S32 width, S32 height, S32 ncomponents, S32 discard_level = -1);
|
||||
bool setSize(S32 width, S32 height, S32 ncomponents, S32 discard_level = -1);
|
||||
void setComponents(S32 ncomponents) { mComponents = (S8)ncomponents ;}
|
||||
void setAllowCompression(bool allow) { mAllowCompression = allow; }
|
||||
|
||||
|
|
|
|||
|
|
@ -3880,13 +3880,13 @@ void LLAppearanceMgr::serverAppearanceUpdateCoro(LLCoreHttpUtil::HttpCoroutineAd
|
|||
}
|
||||
else
|
||||
{
|
||||
if (cofVersion < lastRcv)
|
||||
if (cofVersion <= lastRcv)
|
||||
{
|
||||
LL_WARNS("Avatar") << "Have already received update for cof version " << lastRcv
|
||||
<< " but requesting for " << cofVersion << LL_ENDL;
|
||||
return;
|
||||
}
|
||||
if (lastReq > cofVersion)
|
||||
if (lastReq >= cofVersion)
|
||||
{
|
||||
LL_WARNS("Avatar") << "Request already in flight for cof version " << lastReq
|
||||
<< " but requesting for " << cofVersion << LL_ENDL;
|
||||
|
|
@ -3906,7 +3906,7 @@ void LLAppearanceMgr::serverAppearanceUpdateCoro(LLCoreHttpUtil::HttpCoroutineAd
|
|||
LL_WARNS("Avatar") << "Forcing version failure on COF Baking" << LL_ENDL;
|
||||
}
|
||||
|
||||
LL_INFOS() << "Requesting bake for COF version " << cofVersion << LL_ENDL;
|
||||
LL_INFOS("Avatar") << "Requesting bake for COF version " << cofVersion << LL_ENDL;
|
||||
|
||||
LLSD postData;
|
||||
if (gSavedSettings.getBOOL("DebugAvatarExperimentalServerAppearanceUpdate"))
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ void LLFloaterMove::setSittingMode(BOOL bSitting)
|
|||
LLPanelStandStopFlying::setStandStopFlyingMode(LLPanelStandStopFlying::SSFM_STOP_FLYING);
|
||||
}
|
||||
}
|
||||
enableInstance(!bSitting);
|
||||
enableInstance();
|
||||
}
|
||||
|
||||
// protected
|
||||
|
|
@ -485,7 +485,7 @@ void LLFloaterMove::showModeButtons(BOOL bShow)
|
|||
}
|
||||
|
||||
//static
|
||||
void LLFloaterMove::enableInstance(BOOL bEnable)
|
||||
void LLFloaterMove::enableInstance()
|
||||
{
|
||||
LLFloaterMove* instance = LLFloaterReg::findTypedInstance<LLFloaterMove>("moveview");
|
||||
if (instance)
|
||||
|
|
@ -496,7 +496,7 @@ void LLFloaterMove::enableInstance(BOOL bEnable)
|
|||
}
|
||||
else
|
||||
{
|
||||
instance->showModeButtons(bEnable);
|
||||
instance->showModeButtons(isAgentAvatarValid() && !gAgentAvatarp->isSitting());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -605,7 +605,7 @@ BOOL LLPanelStandStopFlying::postBuild()
|
|||
{
|
||||
mStandButton = getChild<LLButton>("stand_btn");
|
||||
mStandButton->setCommitCallback(boost::bind(&LLPanelStandStopFlying::onStandButtonClick, this));
|
||||
mStandButton->setCommitCallback(boost::bind(&LLFloaterMove::enableInstance, TRUE));
|
||||
mStandButton->setCommitCallback(boost::bind(&LLFloaterMove::enableInstance));
|
||||
mStandButton->setVisible(FALSE);
|
||||
LLHints::registerHintTarget("stand_btn", mStandButton->getHandle());
|
||||
|
||||
|
|
@ -740,8 +740,7 @@ void LLPanelStandStopFlying::onStandButtonClick()
|
|||
// LLSelectMgr::getInstance()->deselectAllForStandingUp();
|
||||
// gAgent.setControlFlags(AGENT_CONTROL_STAND_UP);
|
||||
|
||||
setFocus(FALSE); // EXT-482
|
||||
mStandButton->setVisible(FALSE); // force visibility changing to avoid seeing Stand & Move buttons at once.
|
||||
setFocus(FALSE);
|
||||
}
|
||||
|
||||
void LLPanelStandStopFlying::onStopFlyingButtonClick()
|
||||
|
|
@ -749,7 +748,6 @@ void LLPanelStandStopFlying::onStopFlyingButtonClick()
|
|||
gAgent.setFlying(FALSE);
|
||||
|
||||
setFocus(FALSE); // EXT-482
|
||||
mStopFlyingButton->setVisible(FALSE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public:
|
|||
static void setAlwaysRunMode(bool run);
|
||||
void setAlwaysRunModeImpl(bool run);
|
||||
static void setSittingMode(BOOL bSitting);
|
||||
static void enableInstance(BOOL bEnable);
|
||||
static void enableInstance();
|
||||
/*virtual*/ void onOpen(const LLSD& key);
|
||||
|
||||
// static void sUpdateFlyingStatus();
|
||||
|
|
|
|||
|
|
@ -1966,6 +1966,12 @@ bool LLTextureCache::writeToFastCache(S32 id, LLPointer<LLImageRaw> raw, S32 dis
|
|||
{
|
||||
//make a duplicate to keep the original raw image untouched.
|
||||
raw = raw->duplicate();
|
||||
if (raw->isBufferInvalid())
|
||||
{
|
||||
LL_WARNS() << "Invalid image duplicate buffer" << LL_ENDL;
|
||||
return false;
|
||||
}
|
||||
|
||||
raw->scale(w, h) ;
|
||||
|
||||
discardlevel += i ;
|
||||
|
|
|
|||
|
|
@ -8510,6 +8510,11 @@ void process_script_question(LLMessageSystem *msg, void **user_data)
|
|||
if (("ScriptTakeMoney" == script_perm.question) && has_not_only_debit)
|
||||
continue;
|
||||
|
||||
if (script_perm.question == "JoinAnExperience")
|
||||
{ // Some experience only permissions do not have an explicit permission bit. Add them here.
|
||||
script_question += " " + LLTrans::getString("ForceSitAvatar") + "\n";
|
||||
}
|
||||
|
||||
script_question += " " + LLTrans::getString(script_perm.question) + "\n";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -570,6 +570,7 @@ Please try logging in again in a minute.</string>
|
|||
<string name="TeleportYourAgent">Teleport you</string>
|
||||
<string name="ManageEstateSilently">Manage your estates silently</string>
|
||||
<string name="ChangeYourDefaultAnimations">Change your default animations</string>
|
||||
<string name="ForceSitAvatar">Force your avatar to sit</string>
|
||||
<string name="SnapshotSavedToDisk">Snapshot saved: [FILENAME]</string>
|
||||
|
||||
<string name="JoinAnExperience"/><!-- intentionally blank -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue