diff options
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/Manager/ZeroMesher.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/Manager/ZeroMesher.cs b/OpenSim/Region/Physics/Manager/ZeroMesher.cs index f9d0f2a..81eeed2 100644 --- a/OpenSim/Region/Physics/Manager/ZeroMesher.cs +++ b/OpenSim/Region/Physics/Manager/ZeroMesher.cs | |||
@@ -67,6 +67,9 @@ namespace OpenSim.Region.Physics.Manager | |||
67 | 67 | ||
68 | public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, PhysicsVector size, float lod, bool isPhysical) | 68 | public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, PhysicsVector size, float lod, bool isPhysical) |
69 | { | 69 | { |
70 | // Remove the reference to the encoded JPEG2000 data so it can be GCed | ||
71 | primShape.SculptData = OpenMetaverse.Utils.EmptyBytes; | ||
72 | |||
70 | return null; | 73 | return null; |
71 | } | 74 | } |
72 | } | 75 | } |
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index f609e73..01093e2 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs | |||
@@ -281,7 +281,7 @@ namespace OpenSim.Region.Physics.Meshing | |||
281 | 281 | ||
282 | if (idata == null) | 282 | if (idata == null) |
283 | { | 283 | { |
284 | if (primShape.SculptData.Length == 0) | 284 | if (primShape.SculptData == null || primShape.SculptData.Length == 0) |
285 | return null; | 285 | return null; |
286 | 286 | ||
287 | try | 287 | try |