diff options
author | dahlia | 2012-05-07 00:33:50 -0700 |
---|---|---|
committer | dahlia | 2012-05-07 00:33:50 -0700 |
commit | 40324553322d1cf211eec32041bad5a2dc197f6d (patch) | |
tree | 97272025548e2842ef478e8c033fc934c80ad8a6 | |
parent | remove default values from prior commit since mono cant deal with them (diff) | |
download | opensim-SC-40324553322d1cf211eec32041bad5a2dc197f6d.zip opensim-SC-40324553322d1cf211eec32041bad5a2dc197f6d.tar.gz opensim-SC-40324553322d1cf211eec32041bad5a2dc197f6d.tar.bz2 opensim-SC-40324553322d1cf211eec32041bad5a2dc197f6d.tar.xz |
add a null check for Primitive.Sculpt in PrimitiveBaseShape constructor for OpenMetaverse.Primitive object
-rw-r--r-- | OpenSim/Framework/PrimitiveBaseShape.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index 1b6a1d2..76dcfca 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs | |||
@@ -241,10 +241,14 @@ namespace OpenSim.Framework | |||
241 | 241 | ||
242 | m_textureEntry = prim.Textures.GetBytes(); | 242 | m_textureEntry = prim.Textures.GetBytes(); |
243 | 243 | ||
244 | SculptEntry = (prim.Sculpt.Type != OpenMetaverse.SculptType.None); | 244 | if (prim.Sculpt != null) |
245 | SculptData = prim.Sculpt.GetBytes(); | 245 | { |
246 | SculptTexture = prim.Sculpt.SculptTexture; | 246 | SculptEntry = (prim.Sculpt.Type != OpenMetaverse.SculptType.None); |
247 | SculptType = (byte)prim.Sculpt.Type; | 247 | SculptData = prim.Sculpt.GetBytes(); |
248 | SculptTexture = prim.Sculpt.SculptTexture; | ||
249 | SculptType = (byte)prim.Sculpt.Type; | ||
250 | } | ||
251 | else SculptType = (byte)OpenMetaverse.SculptType.None; | ||
248 | } | 252 | } |
249 | 253 | ||
250 | [XmlIgnore] | 254 | [XmlIgnore] |