Dragged over lltexlayer, lldriverparam, lllocaltextureobject, llwearabledata
This commit is contained in:
@@ -168,7 +168,8 @@ LLVisualParam::LLVisualParam()
|
||||
mIsAnimating( FALSE ),
|
||||
mID( -1 ),
|
||||
mInfo( 0 ),
|
||||
mIsDummy(FALSE)
|
||||
mIsDummy(FALSE),
|
||||
mParamLocation(LOC_UNKNOWN)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -319,3 +320,32 @@ void LLVisualParam::resetDrivenParams()
|
||||
// nothing to do for non-driver parameters
|
||||
return;
|
||||
}
|
||||
|
||||
const std::string param_location_name(const EParamLocation& loc)
|
||||
{
|
||||
switch (loc)
|
||||
{
|
||||
case LOC_UNKNOWN: return "unknown";
|
||||
case LOC_AV_SELF: return "self";
|
||||
case LOC_AV_OTHER: return "other";
|
||||
case LOC_WEARABLE: return "wearable";
|
||||
default: return "error";
|
||||
}
|
||||
}
|
||||
|
||||
void LLVisualParam::setParamLocation(EParamLocation loc)
|
||||
{
|
||||
if (mParamLocation == LOC_UNKNOWN || loc == LOC_UNKNOWN)
|
||||
{
|
||||
mParamLocation = loc;
|
||||
}
|
||||
else if (mParamLocation == loc)
|
||||
{
|
||||
// no action
|
||||
}
|
||||
else
|
||||
{
|
||||
lldebugs << "param location is already " << mParamLocation << ", not slamming to " << loc << llendl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user