fixed propagation of normalized sculpt mesh vertex normals
parent
b83d1537ff
commit
fa5fef33a9
|
@ -369,9 +369,9 @@ namespace PrimMesher
|
||||||
this.normals[face.v3] += surfaceNormal;
|
this.normals[face.v3] += surfaceNormal;
|
||||||
}
|
}
|
||||||
|
|
||||||
int numCoords = this.coords.Count;
|
int numNormals = this.normals.Count;
|
||||||
for (int i = 0; i < numCoords; i++)
|
for (int i = 0; i < numNormals; i++)
|
||||||
this.coords[i].Normalize();
|
this.normals[i] = this.normals[i].Normalize();
|
||||||
|
|
||||||
if (sculptType != SculptType.plane)
|
if (sculptType != SculptType.plane)
|
||||||
{ // blend the vertex normals at the cylinder seam
|
{ // blend the vertex normals at the cylinder seam
|
||||||
|
|
Loading…
Reference in New Issue