diff options
Diffstat (limited to 'OpenSim/Region/Physics/Meshing/Meshmerizer.cs')
-rw-r--r-- | OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index 306eab4..8c9836e 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs | |||
@@ -202,7 +202,6 @@ namespace OpenSim.Region.Physics.Meshing | |||
202 | return null; | 202 | return null; |
203 | } | 203 | } |
204 | 204 | ||
205 | |||
206 | PrimMesher.SculptMesh.SculptType sculptType; | 205 | PrimMesher.SculptMesh.SculptType sculptType; |
207 | switch ((OpenMetaverse.SculptType)primShape.SculptType) | 206 | switch ((OpenMetaverse.SculptType)primShape.SculptType) |
208 | { | 207 | { |
@@ -220,7 +219,11 @@ namespace OpenSim.Region.Physics.Meshing | |||
220 | sculptType = PrimMesher.SculptMesh.SculptType.sphere; | 219 | sculptType = PrimMesher.SculptMesh.SculptType.sphere; |
221 | break; | 220 | break; |
222 | } | 221 | } |
223 | sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, false); | 222 | |
223 | bool mirror = ((primShape.SculptType & 128) != 0); | ||
224 | bool invert = ((primShape.SculptType & 64) != 0); | ||
225 | |||
226 | sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, false, mirror, invert); | ||
224 | 227 | ||
225 | idata.Dispose(); | 228 | idata.Dispose(); |
226 | 229 | ||