Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michiel Cottaar
fslpy
Commits
511b7919
Commit
511b7919
authored
Jun 25, 2019
by
Paul McCarthy
🚵
Browse files
BF: Mesh class was using old face normals for newly added vertex sets
parent
f520818d
Changes
1
Show whitespace changes
Inline
Side-by-side
fsl/data/mesh.py
View file @
511b7919
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment