summaryrefslogtreecommitdiff
path: root/indra/newview/llpolymesh.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2011-03-18 10:16:03 -0400
committerLoren Shih <seraph@lindenlab.com>2011-03-18 10:16:03 -0400
commitc754a7c0000d6f1defd58d7e8b4587d46ee1defe (patch)
tree524c99ea61a4473305dc682443fb4f56ff9f4f5f /indra/newview/llpolymesh.cpp
parent3825ee503ddab29cf408ae35f5a43bcc154353f2 (diff)
Enabling for belly vertical motion.
Diffstat (limited to 'indra/newview/llpolymesh.cpp')
-rw-r--r--indra/newview/llpolymesh.cpp31
1 files changed, 27 insertions, 4 deletions
diff --git a/indra/newview/llpolymesh.cpp b/indra/newview/llpolymesh.cpp
index 4541fa71d5..08813e6a98 100644
--- a/indra/newview/llpolymesh.cpp
+++ b/indra/newview/llpolymesh.cpp
@@ -606,10 +606,35 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
if (!strcmp(morphName, "Big_Belly_Torso"))
{
LLPolyMorphData* belly_data = new LLPolyMorphData(*morph_data);
- belly_data->mName = std::string("Belly_Gravity");
+ belly_data->mName = std::string("Big_Belly_Torso_Gravity");
+ for (U32 v=0; v < belly_data->mNumIndices; v++)
+ {
+ belly_data->mCoords[v][0] = 0;
+ belly_data->mCoords[v][1] = 0;
+ belly_data->mCoords[v][2] = 0.01F;
+ }
+ mMorphData.insert(belly_data);
+ }
+
+ if (!strcmp(morphName, "Big_Belly_Legs"))
+ {
+ LLPolyMorphData* belly_data = new LLPolyMorphData(*morph_data);
+ belly_data->mName = std::string("Big_Belly_Legs_Gravity");
+ for (U32 v=0; v < belly_data->mNumIndices; v++)
+ {
+ belly_data->mCoords[v][0] = 0;
+ belly_data->mCoords[v][1] = 0;
+ belly_data->mCoords[v][2] = 0.01F;
+ }
+ mMorphData.insert(belly_data);
+ }
+
+ if (!strcmp(morphName, "skirt_belly"))
+ {
+ LLPolyMorphData* belly_data = new LLPolyMorphData(*morph_data);
+ belly_data->mName = std::string("skirt_belly_gravity");
for (U32 v=0; v < belly_data->mNumIndices; v++)
{
- // llinfos << "Coord: " << v << "\t" << belly_data->mCoords[v] << llendl;
belly_data->mCoords[v][0] = 0;
belly_data->mCoords[v][1] = 0;
belly_data->mCoords[v][2] = 0.01F;
@@ -619,12 +644,10 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
if (!strcmp(morphName, "Small_Butt"))
{
- llinfos << "Reading small butt" << llendl;
LLPolyMorphData* butt_data = new LLPolyMorphData(*morph_data);
butt_data->mName = std::string("Butt_Gravity");
for (U32 v=0; v < butt_data->mNumIndices; v++)
{
- // llinfos << "Coord: " << v << "\t" << butt_data->mCoords[v] << llendl;
butt_data->mCoords[v][0] = 0;
butt_data->mCoords[v][1] = 0;
butt_data->mCoords[v][2] = 0.01F;