aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Meshing
diff options
context:
space:
mode:
authorDahlia Trimble2009-04-01 18:38:51 +0000
committerDahlia Trimble2009-04-01 18:38:51 +0000
commit84931236290214d99eab20fc355e2fcaf2aa7470 (patch)
tree899728213972520fc7276a44bc1484c5be8c6860 /OpenSim/Region/Physics/Meshing
parentUpdate svn properties. (diff)
downloadopensim-SC_OLD-84931236290214d99eab20fc355e2fcaf2aa7470.zip
opensim-SC_OLD-84931236290214d99eab20fc355e2fcaf2aa7470.tar.gz
opensim-SC_OLD-84931236290214d99eab20fc355e2fcaf2aa7470.tar.bz2
opensim-SC_OLD-84931236290214d99eab20fc355e2fcaf2aa7470.tar.xz
Hard code scaled image resolution to 96 dpi prior to sculpt meshing to prevent a mono 2.4 failure. Thanks to cmickeyb for pointing out the failure.
Diffstat (limited to 'OpenSim/Region/Physics/Meshing')
-rw-r--r--OpenSim/Region/Physics/Meshing/SculptMesh.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/Meshing/SculptMesh.cs b/OpenSim/Region/Physics/Meshing/SculptMesh.cs
index 0e39d73..b458ed4 100644
--- a/OpenSim/Region/Physics/Meshing/SculptMesh.cs
+++ b/OpenSim/Region/Physics/Meshing/SculptMesh.cs
@@ -69,8 +69,8 @@ namespace PrimMesher
69 69
70 Bitmap scaledImage = new Bitmap(destWidth, destHeight, 70 Bitmap scaledImage = new Bitmap(destWidth, destHeight,
71 PixelFormat.Format24bppRgb); 71 PixelFormat.Format24bppRgb);
72 scaledImage.SetResolution(srcImage.HorizontalResolution, 72
73 srcImage.VerticalResolution); 73 scaledImage.SetResolution(96.0f, 96.0f);
74 74
75 Graphics grPhoto = Graphics.FromImage(scaledImage); 75 Graphics grPhoto = Graphics.FromImage(scaledImage);
76 grPhoto.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Bilinear; 76 grPhoto.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Bilinear;