summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2011-03-18 18:59:59 -0400
committerLoren Shih <seraph@lindenlab.com>2011-03-18 18:59:59 -0400
commit49e449e3a6ea08a969a214ffb7c66ac9607e2732 (patch)
tree4f7b581f9b3b10960ec9d3f945738f9bb9a24e3c /indra/newview
parentfc207f935a8d18e7927277f1aa713eb36cc36587 (diff)
Added more belly bounce. Added butt driver param back in.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/character/avatar_lad.xml23
-rw-r--r--indra/newview/llphysicsmotion.cpp11
-rw-r--r--indra/newview/llpolymesh.cpp8
3 files changed, 29 insertions, 13 deletions
diff --git a/indra/newview/character/avatar_lad.xml b/indra/newview/character/avatar_lad.xml
index b839d64980..58fe82da9e 100644
--- a/indra/newview/character/avatar_lad.xml
+++ b/indra/newview/character/avatar_lad.xml
@@ -4443,7 +4443,7 @@
<param
id="1089"
group="0"
- name="Butt_Physics_UpDown_Controller"
+ name="Butt_Physics_UpDown_Driven"
wearable="shape"
edit_group="driven"
label_min="Separate"
@@ -9350,6 +9350,27 @@ render_pass="bump">
<param_driver />
</param>
+ <param
+ id="1090"
+ group="0"
+ wearable="shape"
+ edit_group="shape_legs"
+ edit_group_order="14"
+ name="Butt_Physics_UpDown_Controller"
+ label="Butt Physics UpDown Controller"
+ label_min="Down"
+ label_max="Up"
+ value_min="-1"
+ value_max="1"
+ value_default="0"
+ camera_elevation=".3"
+ camera_distance=".8">
+ <param_driver>
+ <driven
+ id="1089" />
+ </param_driver>
+ </param>
+
<param
id="507"
group="0"
diff --git a/indra/newview/llphysicsmotion.cpp b/indra/newview/llphysicsmotion.cpp
index 094faf4d97..393120be40 100644
--- a/indra/newview/llphysicsmotion.cpp
+++ b/indra/newview/llphysicsmotion.cpp
@@ -64,7 +64,8 @@ inline F64 llsgn(const F64 a)
by the actual params that the user sees and sets. For example, in the old system,
the user sets a param called breast bouyancy, which controls the Z value of the breasts.
In our new system, the user still sets the breast bouyancy, but that param is redefined
- as a driver param so that it affects ...
+ as a driver param so that affects a new temporary driven param that the bounce is applied
+ to.
*/
class LLPhysicsMotion
@@ -521,9 +522,6 @@ BOOL LLPhysicsMotion::onUpdate(F32 time)
1.0f);
// Set the new param.
- // 1. If the user has specified a param target, use that.
- // 2. If the param is a driver param, set the param(s) that it drives.
- // 3. Otherwise, set the param directly (don't do this if the param is a user-editable param!)
// If a specific param has been declared, then set that one.
// Otherwise, assume that the param is a driver param, and
// set the params that it drives.
@@ -534,6 +532,7 @@ BOOL LLPhysicsMotion::onUpdate(F32 time)
else
{
LLDriverParam *driver_param = dynamic_cast<LLDriverParam *>(mParamUser);
+ llassert_always(driver_param);
if (driver_param)
{
for (LLDriverParam::entry_list_t::iterator iter = driver_param->mDriven.begin();
@@ -545,10 +544,6 @@ BOOL LLPhysicsMotion::onUpdate(F32 time)
setParamValue(driven_param,position_new_local_clamped);
}
}
- else
- {
- setParamValue(mParamUser,position_new_local_clamped);
- }
}
//
diff --git a/indra/newview/llpolymesh.cpp b/indra/newview/llpolymesh.cpp
index f287202ff1..626b7ca1eb 100644
--- a/indra/newview/llpolymesh.cpp
+++ b/indra/newview/llpolymesh.cpp
@@ -611,7 +611,7 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
{
cloned_morph_data->mCoords[v][0] = 0;
cloned_morph_data->mCoords[v][1] = 0;
- cloned_morph_data->mCoords[v][2] = 0.01F;
+ cloned_morph_data->mCoords[v][2] = 0.05F;
cloned_morph_data->mNormals[v] = LLVector3(0,0,0);
cloned_morph_data->mBinormals[v] = LLVector3(0,0,0);
}
@@ -626,7 +626,7 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
{
cloned_morph_data->mCoords[v][0] = 0;
cloned_morph_data->mCoords[v][1] = 0;
- cloned_morph_data->mCoords[v][2] = 0.01F;
+ cloned_morph_data->mCoords[v][2] = 0.05F;
cloned_morph_data->mNormals[v] = LLVector3(0,0,0);
cloned_morph_data->mBinormals[v] = LLVector3(0,0,0);
}
@@ -641,7 +641,7 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
{
cloned_morph_data->mCoords[v][0] = 0;
cloned_morph_data->mCoords[v][1] = 0;
- cloned_morph_data->mCoords[v][2] = 0.01F;
+ cloned_morph_data->mCoords[v][2] = 0.05F;
cloned_morph_data->mNormals[v] = LLVector3(0,0,0);
cloned_morph_data->mBinormals[v] = LLVector3(0,0,0);
}
@@ -651,7 +651,7 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
if (!strcmp(morphName, "Small_Butt"))
{
LLPolyMorphData* cloned_morph_data = new LLPolyMorphData(*morph_data);
- cloned_morph_data->mName = std::string("Butt_Physics_UpDown_Controller");
+ cloned_morph_data->mName = std::string("Butt_Physics_UpDown_Driven");
for (U32 v=0; v < cloned_morph_data->mNumIndices; v++)
{
cloned_morph_data->mCoords[v][0] = 0;