Breast physics is more fully implemented - Default values may be too subtle for some users, look for them in the Vanity preferences.
Client Tags are corrected, it was using the wrong value after being set. Show LookAt now has a checkbox option in the Security tab for people who don't want to use the Advanced menu. Logout/Teleport screen options are now controlled. Signed-off-by: Beeks <HgDelirium@gmail.com>
This commit is contained in:
@@ -556,9 +556,54 @@ BOOL LLWearable::isDirty()
|
||||
weight = llclamp( weight, param->getMinWeight(), param->getMaxWeight() );
|
||||
|
||||
U8 a = F32_to_U8( param->getWeight(), param->getMinWeight(), param->getMaxWeight() );
|
||||
U8 b = F32_to_U8( weight, param->getMinWeight(), param->getMaxWeight() );
|
||||
|
||||
if(avatar->getAppearanceFlag() == true)
|
||||
{
|
||||
//boob
|
||||
if(param->getID() == 507)
|
||||
{
|
||||
weight = get_if_there(mVisualParamMap, param->getID(), avatar->getActualBoobGrav());
|
||||
weight = llclamp( weight, param->getMinWeight(), param->getMaxWeight() );
|
||||
}
|
||||
/*//butt
|
||||
if(param->getID() == 795)
|
||||
{
|
||||
weight = get_if_there(mVisualParamMap, param->getID(), avatar->getActualButtGrav());
|
||||
weight = llclamp( weight, param->getMinWeight(), param->getMaxWeight() );
|
||||
}
|
||||
//fat
|
||||
if(param->getID() == 157)
|
||||
{
|
||||
weight = get_if_there(mVisualParamMap, param->getID(), avatar->getActualFatGrav());
|
||||
weight = llclamp( weight, param->getMinWeight(), param->getMaxWeight() );
|
||||
}
|
||||
*/
|
||||
}
|
||||
else
|
||||
{
|
||||
//boob
|
||||
if(param->getID() == 507)
|
||||
{
|
||||
a = F32_to_U8( avatar->getActualBoobGrav(), param->getMinWeight(), param->getMaxWeight() );
|
||||
}
|
||||
/*//butt
|
||||
if(param->getID() == 795)
|
||||
{
|
||||
a = F32_to_U8( avatar->getActualButtGrav(), param->getMinWeight(), param->getMaxWeight() );
|
||||
}
|
||||
//fat
|
||||
if(param->getID() == 157)
|
||||
{
|
||||
a = F32_to_U8( avatar->getActualFatGrav(), param->getMinWeight(), param->getMaxWeight() );
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
U8 b = F32_to_U8( weight, param->getMinWeight(), param->getMaxWeight() );
|
||||
if( a != b )
|
||||
{
|
||||
llwarns << "param ID " << param->getID() << " was changed." << llendl;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
@@ -644,6 +689,16 @@ void LLWearable::writeToAvatar( BOOL set_by_user )
|
||||
{
|
||||
S32 param_id = param->getID();
|
||||
F32 weight = get_if_there(mVisualParamMap, param_id, param->getDefaultWeight());
|
||||
|
||||
//ZOMG: When switching shapes from inventory
|
||||
if(param_id == 507)
|
||||
avatar->setActualBoobGrav(weight);
|
||||
/*if(param_id == 795)
|
||||
avatar->setActualButtGrav(weight);
|
||||
if(param_id == 157)
|
||||
avatar->setActualFatGrav(weight);
|
||||
*/
|
||||
|
||||
// only animate with user-originated changes
|
||||
if (set_by_user)
|
||||
{
|
||||
@@ -781,6 +836,22 @@ void LLWearable::readFromAvatar()
|
||||
{
|
||||
if( (((LLViewerVisualParam*)param)->getWearableType() == mType) && (param->getGroup() == VISUAL_PARAM_GROUP_TWEAKABLE ) )
|
||||
{
|
||||
|
||||
//pretty sure is right
|
||||
if(param->getID() == 507)
|
||||
avatar->setActualBoobGrav(param->getWeight());
|
||||
/*if(param->getID() == 151)
|
||||
avatar->setActualButtGrav(param->getWeight());
|
||||
if(param->getID() == 157)
|
||||
avatar->setActualFatGrav(param->getWeight());
|
||||
*/
|
||||
//if(param->getID() == 507)
|
||||
//{
|
||||
// llwarns << "current = " << avatar->getActualBoobGrav() << llendl;
|
||||
// llwarns << "param weight = " << param->getWeight() << llendl;
|
||||
//}
|
||||
|
||||
|
||||
mVisualParamMap[param->getID()] = param->getWeight();
|
||||
}
|
||||
}
|
||||
@@ -832,6 +903,27 @@ void LLWearable::copyDataFrom( LLWearable* src )
|
||||
{
|
||||
S32 id = param->getID();
|
||||
F32 weight = get_if_there(src->mVisualParamMap, id, param->getDefaultWeight() );
|
||||
//llwarns << "------------------------------" << llendl;
|
||||
//llwarns << "copydatafrom" << llendl;
|
||||
//llwarns << "------------------------------" << llendl;
|
||||
|
||||
//if(id == 507)
|
||||
//{
|
||||
// llwarns << "weight = " << weight << llendl;
|
||||
// llwarns << "actual = " << avatar->getActualBoobGrav() << llendl;
|
||||
// llwarns << "mVisualParamMap[id] = " << mVisualParamMap[id] << llendl;
|
||||
//}
|
||||
|
||||
//pretty sure right
|
||||
if(id == 507)
|
||||
avatar->setActualBoobGrav(weight);
|
||||
/*if(id == 795)
|
||||
avatar->setActualButtGrav(weight);
|
||||
if(id == 157)
|
||||
avatar->setActualFatGrav(weight);
|
||||
*/
|
||||
|
||||
|
||||
mVisualParamMap[id] = weight;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user