Add Advanced --> Character --> Meshes and morphs...

Allows to save the .llm of all mesh objects, and
all morphs of each as .obj (Wavefront OBJ File),
for import in, for example, blender.

You can also load .obj files, but of course they
will only affect what you see locally.
This commit is contained in:
Aleric Inglewood
2011-05-16 19:03:48 +02:00
parent 00f8c35614
commit 10af185abc
8 changed files with 1532 additions and 25 deletions

View File

@@ -56,6 +56,10 @@ public:
BOOL loadBinary(LLFILE* fp, LLPolyMeshSharedData *mesh);
const std::string& getName() { return mName; }
BOOL saveLLM(LLFILE *fp);
BOOL saveOBJ(LLFILE *fp);
BOOL setMorphFromMesh(LLPolyMesh *morph);
public:
std::string mName;
@@ -167,6 +171,7 @@ public:
/*virtual*/ const LLVector3* getNextDistortion(U32 *index, LLPolyMesh **poly_mesh);
void applyMask(U8 *maskData, S32 width, S32 height, S32 num_components, BOOL invert);
BOOL undoMask(BOOL delete_mask);
void addPendingMorphMask() { mNumMorphMasksPending++; }
protected: