aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r--OpenSim/Region/Physics/Meshing/SculptMesh.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/Meshing/SculptMesh.cs b/OpenSim/Region/Physics/Meshing/SculptMesh.cs
index 06584b2..534dd4d 100644
--- a/OpenSim/Region/Physics/Meshing/SculptMesh.cs
+++ b/OpenSim/Region/Physics/Meshing/SculptMesh.cs
@@ -369,9 +369,9 @@ namespace PrimMesher
369 this.normals[face.v3] += surfaceNormal; 369 this.normals[face.v3] += surfaceNormal;
370 } 370 }
371 371
372 int numCoords = this.coords.Count; 372 int numNormals = this.normals.Count;
373 for (int i = 0; i < numCoords; i++) 373 for (int i = 0; i < numNormals; i++)
374 this.coords[i].Normalize(); 374 this.normals[i] = this.normals[i].Normalize();
375 375
376 if (sculptType != SculptType.plane) 376 if (sculptType != SculptType.plane)
377 { // blend the vertex normals at the cylinder seam 377 { // blend the vertex normals at the cylinder seam