Skip to content
Snippets Groups Projects
Commit 45ab1429 authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

SL-395 - believed fix for intermittent problem uploading meshes with scale locks

parent 02001352
No related branches found
No related tags found
No related merge requests found
...@@ -1343,7 +1343,6 @@ bool LLModel::matchMaterialOrder(LLModel* ref, int& refFaceCnt, int& modelFaceCn ...@@ -1343,7 +1343,6 @@ bool LLModel::matchMaterialOrder(LLModel* ref, int& refFaceCnt, int& modelFaceCn
return true; return true;
} }
bool LLModel::loadSkinInfo(LLSD& header, std::istream &is) bool LLModel::loadSkinInfo(LLSD& header, std::istream &is)
{ {
S32 offset = header["skin"]["offset"].asInteger(); S32 offset = header["skin"]["offset"].asInteger();
...@@ -1386,8 +1385,15 @@ bool LLModel::loadDecomposition(LLSD& header, std::istream& is) ...@@ -1386,8 +1385,15 @@ bool LLModel::loadDecomposition(LLSD& header, std::istream& is)
return true; return true;
} }
LLMeshSkinInfo::LLMeshSkinInfo():
mPelvisOffset(0.0),
mLockScaleIfJointPosition(false)
{
}
LLMeshSkinInfo::LLMeshSkinInfo(LLSD& skin) LLMeshSkinInfo::LLMeshSkinInfo(LLSD& skin):
mPelvisOffset(0.0),
mLockScaleIfJointPosition(false)
{ {
fromLLSD(skin); fromLLSD(skin);
} }
...@@ -1503,7 +1509,7 @@ LLSD LLMeshSkinInfo::asLLSD(bool include_joints, bool lock_scale_if_joint_positi ...@@ -1503,7 +1509,7 @@ LLSD LLMeshSkinInfo::asLLSD(bool include_joints, bool lock_scale_if_joint_positi
if (lock_scale_if_joint_position) if (lock_scale_if_joint_position)
{ {
ret["lock_scale_if_joint_position"] = mLockScaleIfJointPosition; ret["lock_scale_if_joint_position"] = lock_scale_if_joint_position;
} }
ret["pelvis_offset"] = mPelvisOffset; ret["pelvis_offset"] = mPelvisOffset;
......
...@@ -42,7 +42,7 @@ class domMesh; ...@@ -42,7 +42,7 @@ class domMesh;
class LLMeshSkinInfo class LLMeshSkinInfo
{ {
public: public:
LLMeshSkinInfo() { } LLMeshSkinInfo();
LLMeshSkinInfo(LLSD& data); LLMeshSkinInfo(LLSD& data);
void fromLLSD(LLSD& data); void fromLLSD(LLSD& data);
LLSD asLLSD(bool include_joints, bool lock_scale_if_joint_position) const; LLSD asLLSD(bool include_joints, bool lock_scale_if_joint_position) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment