From e57c2b47a81b3134adc59fbd57568e98def229db Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 18 May 2008 21:05:48 +0000 Subject: [PATCH] * This fixes the Sculpty seam. Unfortunately not all sculpties will survive. A tiny fraction of them will turn into a torus. --- OpenSim/Framework/PrimitiveBaseShape.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index 82aec06280..f03c6d0bbe 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs @@ -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());