aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
diff options
context:
space:
mode:
authorUbitUmarov2012-08-05 10:37:25 +0100
committerUbitUmarov2012-08-05 10:37:25 +0100
commit493309d91a2aaa56d95d3f08806524159bc6e645 (patch)
tree8406133b70e32d8840e4dae5630b17bb163c999b /OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
parent*feature test* ubitode, let convex hull shape type work for prims other (diff)
downloadopensim-SC_OLD-493309d91a2aaa56d95d3f08806524159bc6e645.zip
opensim-SC_OLD-493309d91a2aaa56d95d3f08806524159bc6e645.tar.gz
opensim-SC_OLD-493309d91a2aaa56d95d3f08806524159bc6e645.tar.bz2
opensim-SC_OLD-493309d91a2aaa56d95d3f08806524159bc6e645.tar.xz
ubitmeshing: mask out mirror and invert bits on sculpttype convertion.
Remove some unused
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs6
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