aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs
diff options
context:
space:
mode:
authorUbitUmarov2012-08-05 12:54:34 +0100
committerUbitUmarov2012-08-05 12:54:34 +0100
commit307c45af2abc3246ae93e4f068d1da7679957be3 (patch)
tree433c69e09888cf3443cedbfc2680e45e78cec93c /OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs
parent ubitmeshing: mask out mirror and invert bits on sculpttype convertion. (diff)
downloadopensim-SC-307c45af2abc3246ae93e4f068d1da7679957be3.zip
opensim-SC-307c45af2abc3246ae93e4f068d1da7679957be3.tar.gz
opensim-SC-307c45af2abc3246ae93e4f068d1da7679957be3.tar.bz2
opensim-SC-307c45af2abc3246ae93e4f068d1da7679957be3.tar.xz
bug fix: keep sculpt bitmaps border pixels during resolution scaling.
let this eventually have diferent interpolator last steps on each direction as sl seems to do.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs b/OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs
index 655b325..bc1375b 100644
--- a/OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs
+++ b/OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs
@@ -48,7 +48,12 @@ namespace PrimMesher
48 { 48 {
49 if (mirror) 49 if (mirror)
50 invert = !invert; 50 invert = !invert;
51 _SculptMesh(new SculptMap(sculptBitmap, lod).ToRows(mirror), sculptType, invert); 51
52 SculptMap smap = new SculptMap(sculptBitmap, lod);
53
54 List<List<Coord>> rows = smap.ToRows(mirror);
55
56 _SculptMesh(rows, sculptType, invert);
52 } 57 }
53 58
54 private void _SculptMesh(List<List<Coord>> rows, SculptType sculptType, bool invert) 59 private void _SculptMesh(List<List<Coord>> rows, SculptType sculptType, bool invert)