Skip to content
Snippets Groups Projects
Commit 511b7919 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

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

parent f520818d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment