Commit 511b7919 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Mesh class was using old face normals for newly added vertex sets

parent f520818d
......@@ -422,7 +422,7 @@ class Mesh(notifier.Notifier, meta.Meta):
if fixWinding:
indices = self.__indices
normals = self.normals
normals = calcFaceNormals(vertices, indices)
needsFix = needsFixing(vertices, indices, normals, lo, hi)
# See needsFixing documentation
......@@ -433,6 +433,8 @@ class Mesh(notifier.Notifier, meta.Meta):
self.__vindices[ key] = self.__fixedIndices
self.__faceNormals[key] = normals * -1
else:
self.__faceNormals[key] = normals
return vertices
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment