diff options
-rw-r--r-- | OpenSim/Framework/PrimitiveBaseShape.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index 82aec06..f03c6d0 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs | |||
@@ -472,7 +472,7 @@ namespace OpenSim.Framework | |||
472 | { | 472 | { |
473 | SculptEntry = true; | 473 | SculptEntry = true; |
474 | SculptTextureUUID = new byte[16]; | 474 | SculptTextureUUID = new byte[16]; |
475 | SculptTypel = data[16]; | 475 | SculptTypel = data[16 + pos]; |
476 | Array.Copy(data, pos, SculptTextureUUID,0, 16); | 476 | Array.Copy(data, pos, SculptTextureUUID,0, 16); |
477 | SculptUUID = new LLUUID(SculptTextureUUID, 0); | 477 | SculptUUID = new LLUUID(SculptTextureUUID, 0); |
478 | } | 478 | } |
@@ -483,7 +483,11 @@ namespace OpenSim.Framework | |||
483 | SculptTypel = 0x00; | 483 | SculptTypel = 0x00; |
484 | } | 484 | } |
485 | 485 | ||
486 | 486 | if (SculptEntry) | |
487 | { | ||
488 | if (SculptType != (byte)1 && SculptType != (byte)2 && SculptType != (byte)3 && SculptType != (byte)4) | ||
489 | SculptType = 4; | ||
490 | } | ||
487 | SculptTexture = SculptUUID; | 491 | SculptTexture = SculptUUID; |
488 | SculptType = SculptTypel; | 492 | SculptType = SculptTypel; |
489 | //m_log.Info("[SCULPT]:" + SculptUUID.ToString()); | 493 | //m_log.Info("[SCULPT]:" + SculptUUID.ToString()); |