diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Physics/Meshing/SculptMesh.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/Meshing/SculptMesh.cs b/OpenSim/Region/Physics/Meshing/SculptMesh.cs index 826030b..9a5a776 100644 --- a/OpenSim/Region/Physics/Meshing/SculptMesh.cs +++ b/OpenSim/Region/Physics/Meshing/SculptMesh.cs | |||
@@ -91,7 +91,8 @@ namespace PrimMesher | |||
91 | normals = new List<Coord>(); | 91 | normals = new List<Coord>(); |
92 | uvs = new List<UVCoord>(); | 92 | uvs = new List<UVCoord>(); |
93 | 93 | ||
94 | float sourceScaleFactor = (float)lod / (float)Math.Max(sculptBitmap.Width, sculptBitmap.Height); | 94 | //float sourceScaleFactor = (float)lod / (float)Math.Max(sculptBitmap.Width, sculptBitmap.Height); |
95 | float sourceScaleFactor = (float)(lod * lod) / (float)(sculptBitmap.Width * sculptBitmap.Height); | ||
95 | bool scaleSourceImage = sourceScaleFactor < 1.0f ? true : false; | 96 | bool scaleSourceImage = sourceScaleFactor < 1.0f ? true : false; |
96 | 97 | ||
97 | Bitmap bitmap; | 98 | Bitmap bitmap; |