diff options
author | Dahlia Trimble | 2009-03-26 18:12:10 +0000 |
---|---|---|
committer | Dahlia Trimble | 2009-03-26 18:12:10 +0000 |
commit | ad012d4b46413bcd550f6bc5d300db3ae3cb7a2e (patch) | |
tree | ca7f0922f5e0925e1a4168a7e250d41f8e67db88 /OpenSim/Region/Physics/Meshing/Meshmerizer.cs | |
parent | * Ooops, wasn't that - it was the lack of a Types reference isntead (diff) | |
download | opensim-SC-ad012d4b46413bcd550f6bc5d300db3ae3cb7a2e.zip opensim-SC-ad012d4b46413bcd550f6bc5d300db3ae3cb7a2e.tar.gz opensim-SC-ad012d4b46413bcd550f6bc5d300db3ae3cb7a2e.tar.bz2 opensim-SC-ad012d4b46413bcd550f6bc5d300db3ae3cb7a2e.tar.xz |
add x-axis mirror capability to sculpted prim mesh - addresses Mantis #3342
Diffstat (limited to '')
-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 | ||