diff options
-rw-r--r-- | indra/llprimitive/llmodel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llprimitive/llmodel.h b/indra/llprimitive/llmodel.h index 74e5657d28..b5dd9bf87d 100644 --- a/indra/llprimitive/llmodel.h +++ b/indra/llprimitive/llmodel.h @@ -225,7 +225,7 @@ public: bool areEqual( double a, double b ) { const float epsilon = 1e-5f; - return (abs((int)(a - b)) > epsilon) && (a < b); + return (abs((int)(a - b)) < epsilon) && (a < b); } //Make sure that we return false for any values that are within the tolerance for equivalence bool operator() ( const LLVector3& a, const LLVector3& b ) @@ -240,7 +240,7 @@ public: //map of positions to skin weights --- mSkinWeights[pos].mV[0..4] == <joint_index>.<weight> //joint_index corresponds to mJointList typedef std::vector<JointWeight> weight_list; - typedef std::map<LLVector3, weight_list, JointPositionalCompare > weight_map; + typedef std::map<LLVector3, weight_list > weight_map; weight_map mSkinWeights; //get list of weight influences closest to given position |