* This fixes the Sculpty seam. Unfortunately not all sculpties will survive. A tiny fraction of them will turn into a torus.

0.6.0-stable
Teravus Ovares 2008-05-18 21:05:48 +00:00
parent f6add412d6
commit e57c2b47a8
1 changed files with 6 additions and 2 deletions

View File

@ -472,7 +472,7 @@ namespace OpenSim.Framework
{
SculptEntry = true;
SculptTextureUUID = new byte[16];
SculptTypel = data[16];
SculptTypel = data[16 + pos];
Array.Copy(data, pos, SculptTextureUUID,0, 16);
SculptUUID = new LLUUID(SculptTextureUUID, 0);
}
@ -483,7 +483,11 @@ namespace OpenSim.Framework
SculptTypel = 0x00;
}
if (SculptEntry)
{
if (SculptType != (byte)1 && SculptType != (byte)2 && SculptType != (byte)3 && SculptType != (byte)4)
SculptType = 4;
}
SculptTexture = SculptUUID;
SculptType = SculptTypel;
//m_log.Info("[SCULPT]:" + SculptUUID.ToString());