summaryrefslogtreecommitdiff
path: root/indra/newview/llpolymesh.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2011-03-17 17:36:01 -0400
committerLoren Shih <seraph@lindenlab.com>2011-03-17 17:36:01 -0400
commit3825ee503ddab29cf408ae35f5a43bcc154353f2 (patch)
tree6b31c767bd0b4f982c971b3d51593907b81bdae3 /indra/newview/llpolymesh.cpp
parenta4f2c570dd42066f0e2738a0fd2de6c61c35b47b (diff)
Work in progress. Big code cleanup ported from TheShining/avatar-physics (defunct branch).
Added butt and belly.
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 2942f4befb..4541fa71d5 100644
--- a/indra/newview/llpolymesh.cpp
+++ b/indra/newview/llpolymesh.cpp
@@ -602,12 +602,35 @@ BOOL LLPolyMeshSharedData::loadMesh( const std::string& fileName )
}
mMorphData.insert(morph_data);
- /*
- if (std::string(morphName) == "Breast_Gravity")
+
+ if (!strcmp(morphName, "Big_Belly_Torso"))
+ {
+ LLPolyMorphData* belly_data = new LLPolyMorphData(*morph_data);
+ belly_data->mName = std::string("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;
+ }
+ mMorphData.insert(belly_data);
+ }
+
+ if (!strcmp(morphName, "Small_Butt"))
{
- LLPolyMorphData *morph_data_clone = new LLPolyMorphData(std::string(morphName));
+ 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;
+ }
+ mMorphData.insert(butt_data);
}
- */
}
S32 numRemaps;