From ad012d4b46413bcd550f6bc5d300db3ae3cb7a2e Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Thu, 26 Mar 2009 18:12:10 +0000 Subject: add x-axis mirror capability to sculpted prim mesh - addresses Mantis #3342 --- OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Physics/Meshing/Meshmerizer.cs') 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 return null; } - PrimMesher.SculptMesh.SculptType sculptType; switch ((OpenMetaverse.SculptType)primShape.SculptType) { @@ -220,7 +219,11 @@ namespace OpenSim.Region.Physics.Meshing sculptType = PrimMesher.SculptMesh.SculptType.sphere; break; } - sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, false); + + bool mirror = ((primShape.SculptType & 128) != 0); + bool invert = ((primShape.SculptType & 64) != 0); + + sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, false, mirror, invert); idata.Dispose(); -- cgit v1.1