No longer include llerrorlegacy.h. Updated llstl to include deletion utilites.
This commit is contained in:
@@ -79,7 +79,7 @@ BOOL LLVisualParamInfo::parseXml(LLXmlTreeNode *node)
|
||||
mDefaultWeight = llclamp( default_weight, mMinWeight, mMaxWeight );
|
||||
if( default_weight != mDefaultWeight )
|
||||
{
|
||||
llwarns << "value_default attribute is out of range in node " << mName << " " << default_weight << llendl;
|
||||
LL_WARNS() << "value_default attribute is out of range in node " << mName << " " << default_weight << LL_ENDL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ BOOL LLVisualParamInfo::parseXml(LLXmlTreeNode *node)
|
||||
}
|
||||
else
|
||||
{
|
||||
llwarns << "Avatar file: <param> has invalid sex attribute: " << sex << llendl;
|
||||
LL_WARNS() << "Avatar file: <param> has invalid sex attribute: " << sex << LL_ENDL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ BOOL LLVisualParamInfo::parseXml(LLXmlTreeNode *node)
|
||||
static LLStdStringHandle name_string = LLXmlTree::addAttributeString("name");
|
||||
if( !node->getFastAttributeString( name_string, mName ) )
|
||||
{
|
||||
llwarns << "Avatar file: <param> is missing name attribute" << llendl;
|
||||
LL_WARNS() << "Avatar file: <param> is missing name attribute" << LL_ENDL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -159,26 +159,42 @@ void LLVisualParamInfo::toStream(std::ostream &out)
|
||||
//-----------------------------------------------------------------------------
|
||||
// LLVisualParam()
|
||||
//-----------------------------------------------------------------------------
|
||||
LLVisualParam::LLVisualParam()
|
||||
:
|
||||
mCurWeight( 0.f ),
|
||||
LLVisualParam::LLVisualParam()
|
||||
: mCurWeight( 0.f ),
|
||||
mLastWeight( 0.f ),
|
||||
mNext( NULL ),
|
||||
mTargetWeight( 0.f ),
|
||||
mIsAnimating( FALSE ),
|
||||
mIsDummy(FALSE),
|
||||
mID( -1 ),
|
||||
mInfo( 0 ),
|
||||
mIsDummy(FALSE),
|
||||
mParamLocation(LOC_UNKNOWN)
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// LLVisualParam()
|
||||
//-----------------------------------------------------------------------------
|
||||
LLVisualParam::LLVisualParam(const LLVisualParam& pOther)
|
||||
: mCurWeight(pOther.mCurWeight),
|
||||
mLastWeight(pOther.mLastWeight),
|
||||
mNext(pOther.mNext),
|
||||
mTargetWeight(pOther.mTargetWeight),
|
||||
mIsAnimating(pOther.mIsAnimating),
|
||||
mIsDummy(pOther.mIsDummy),
|
||||
mID(pOther.mID),
|
||||
mInfo(pOther.mInfo),
|
||||
mParamLocation(pOther.mParamLocation)
|
||||
{
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// ~LLVisualParam()
|
||||
//-----------------------------------------------------------------------------
|
||||
LLVisualParam::~LLVisualParam()
|
||||
{
|
||||
delete mNext;
|
||||
mNext = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -220,7 +236,7 @@ BOOL LLVisualParam::parseData(LLXmlTreeNode *node)
|
||||
//-----------------------------------------------------------------------------
|
||||
// setWeight()
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVisualParam::setWeight(F32 weight, BOOL upload_bake)
|
||||
void LLVisualParam::setWeight(F32 weight, bool upload_bake)
|
||||
{
|
||||
if (mIsAnimating)
|
||||
{
|
||||
@@ -245,7 +261,7 @@ void LLVisualParam::setWeight(F32 weight, BOOL upload_bake)
|
||||
//-----------------------------------------------------------------------------
|
||||
// setAnimationTarget()
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVisualParam::setAnimationTarget(F32 target_value, BOOL upload_bake)
|
||||
void LLVisualParam::setAnimationTarget(F32 target_value, bool upload_bake)
|
||||
{
|
||||
// don't animate dummy parameters
|
||||
if (mIsDummy)
|
||||
@@ -284,10 +300,18 @@ void LLVisualParam::setNextParam( LLVisualParam *next )
|
||||
mNext = next;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// clearNextParam()
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVisualParam::clearNextParam()
|
||||
{
|
||||
mNext = NULL;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// animate()
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVisualParam::animate( F32 delta, BOOL upload_bake )
|
||||
void LLVisualParam::animate( F32 delta, bool upload_bake )
|
||||
{
|
||||
if (mIsAnimating)
|
||||
{
|
||||
@@ -299,7 +323,7 @@ void LLVisualParam::animate( F32 delta, BOOL upload_bake )
|
||||
//-----------------------------------------------------------------------------
|
||||
// stopAnimating()
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVisualParam::stopAnimating(BOOL upload_bake)
|
||||
void LLVisualParam::stopAnimating(bool upload_bake)
|
||||
{
|
||||
if (mIsAnimating && isTweakable())
|
||||
{
|
||||
@@ -346,7 +370,7 @@ void LLVisualParam::setParamLocation(EParamLocation loc)
|
||||
}
|
||||
else
|
||||
{
|
||||
lldebugs << "param location is already " << mParamLocation << ", not slamming to " << loc << llendl;
|
||||
LL_DEBUGS() << "param location is already " << mParamLocation << ", not slamming to " << loc << LL_ENDL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user