add convex state to mesh key, so a change is detected.

This commit is contained in:
UbitUmarov
2012-03-21 01:24:30 +00:00
parent 4e4a3e8d22
commit 2e41294da9
2 changed files with 9 additions and 1 deletions

View File

@@ -880,6 +880,11 @@ namespace OpenSim.Framework
}
public ulong GetMeshKey(Vector3 size, float lod)
{
return GetMeshKey(size, lod, false);
}
public ulong GetMeshKey(Vector3 size, float lod, bool convex)
{
ulong hash = 5381;
@@ -926,6 +931,9 @@ namespace OpenSim.Framework
hash = djb2(hash, scaleBytes[i]);
}
if(convex)
hash = djb2(hash, 0xa5);
return hash;
}