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();
|
m_textureEntry = prim.Textures.GetBytes();
|
||||||
|
|
||||||
|
if (prim.Sculpt != null)
|
||||||
|
{
|
||||||
SculptEntry = (prim.Sculpt.Type != OpenMetaverse.SculptType.None);
|
SculptEntry = (prim.Sculpt.Type != OpenMetaverse.SculptType.None);
|
||||||
SculptData = prim.Sculpt.GetBytes();
|
SculptData = prim.Sculpt.GetBytes();
|
||||||
SculptTexture = prim.Sculpt.SculptTexture;
|
SculptTexture = prim.Sculpt.SculptTexture;
|
||||||
SculptType = (byte)prim.Sculpt.Type;
|
SculptType = (byte)prim.Sculpt.Type;
|
||||||
}
|
}
|
||||||
|
else SculptType = (byte)OpenMetaverse.SculptType.None;
|
||||||
|
}
|
||||||
|
|
||||||
[XmlIgnore]
|
[XmlIgnore]
|
||||||
public Primitive.TextureEntry Textures
|
public Primitive.TextureEntry Textures
|
||||||
|
|
Loading…
Reference in New Issue