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): ...@@ -422,7 +422,7 @@ class Mesh(notifier.Notifier, meta.Meta):
if fixWinding: if fixWinding:
indices = self.__indices indices = self.__indices
normals = self.normals normals = calcFaceNormals(vertices, indices)
needsFix = needsFixing(vertices, indices, normals, lo, hi) needsFix = needsFixing(vertices, indices, normals, lo, hi)
# See needsFixing documentation # See needsFixing documentation
...@@ -433,6 +433,8 @@ class Mesh(notifier.Notifier, meta.Meta): ...@@ -433,6 +433,8 @@ class Mesh(notifier.Notifier, meta.Meta):
self.__vindices[ key] = self.__fixedIndices self.__vindices[ key] = self.__fixedIndices
self.__faceNormals[key] = normals * -1 self.__faceNormals[key] = normals * -1
else:
self.__faceNormals[key] = normals
return vertices 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