diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs b/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs index f002bba..88efd6d 100644 --- a/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs | |||
@@ -780,7 +780,9 @@ namespace OpenSim.Region.Physics.Meshing | |||
780 | } | 780 | } |
781 | 781 | ||
782 | PrimMesher.SculptMesh.SculptType sculptType; | 782 | PrimMesher.SculptMesh.SculptType sculptType; |
783 | switch ((OpenMetaverse.SculptType)primShape.SculptType) | 783 | // remove mirror and invert bits |
784 | OpenMetaverse.SculptType pbsSculptType = ((OpenMetaverse.SculptType)(primShape.SculptType & 0x3f)); | ||
785 | switch (pbsSculptType) | ||
784 | { | 786 | { |
785 | case OpenMetaverse.SculptType.Cylinder: | 787 | case OpenMetaverse.SculptType.Cylinder: |
786 | sculptType = PrimMesher.SculptMesh.SculptType.cylinder; | 788 | sculptType = PrimMesher.SculptMesh.SculptType.cylinder; |
@@ -802,7 +804,7 @@ namespace OpenSim.Region.Physics.Meshing | |||
802 | bool mirror = ((primShape.SculptType & 128) != 0); | 804 | bool mirror = ((primShape.SculptType & 128) != 0); |
803 | bool invert = ((primShape.SculptType & 64) != 0); | 805 | bool invert = ((primShape.SculptType & 64) != 0); |
804 | 806 | ||
805 | sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, false, mirror, invert); | 807 | sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, mirror, invert); |
806 | 808 | ||
807 | idata.Dispose(); | 809 | idata.Dispose(); |
808 | 810 | ||