aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDahlia Trimble2009-03-15 09:05:35 +0000
committerDahlia Trimble2009-03-15 09:05:35 +0000
commitfa5fef33a9fd754e62f1d61b1be6cf61b58a03ef (patch)
tree11e887a8c995402c1a02ab028083a30aad6902ce
parentUpdate svn properties. (diff)
downloadopensim-SC-fa5fef33a9fd754e62f1d61b1be6cf61b58a03ef.zip
opensim-SC-fa5fef33a9fd754e62f1d61b1be6cf61b58a03ef.tar.gz
opensim-SC-fa5fef33a9fd754e62f1d61b1be6cf61b58a03ef.tar.bz2
opensim-SC-fa5fef33a9fd754e62f1d61b1be6cf61b58a03ef.tar.xz
fixed propagation of normalized sculpt mesh vertex normals
Diffstat (limited to '')
-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