add a null check for Primitive.Sculpt in PrimitiveBaseShape constructor for OpenMetaverse.Primitive object
parent
4186fa10f0
commit
4032455332
|
@ -241,11 +241,15 @@ namespace OpenSim.Framework
|
|||
|
||||
m_textureEntry = prim.Textures.GetBytes();
|
||||
|
||||
if (prim.Sculpt != null)
|
||||
{
|
||||
SculptEntry = (prim.Sculpt.Type != OpenMetaverse.SculptType.None);
|
||||
SculptData = prim.Sculpt.GetBytes();
|
||||
SculptTexture = prim.Sculpt.SculptTexture;
|
||||
SculptType = (byte)prim.Sculpt.Type;
|
||||
}
|
||||
else SculptType = (byte)OpenMetaverse.SculptType.None;
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public Primitive.TextureEntry Textures
|
||||
|
|
Loading…
Reference in New Issue