projects
/
platform
/
upstream
/
assimp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a182faa
)
Fixed faceted normals in SIB importer.
author
rmitton
<richard@codersnotes.com>
Sat, 18 Mar 2017 21:52:48 +0000
(14:52 -0700)
committer
rmitton
<richard@codersnotes.com>
Sat, 18 Mar 2017 21:52:48 +0000
(14:52 -0700)
code/SIBImporter.cpp
patch
|
blob
|
history
diff --git
a/code/SIBImporter.cpp
b/code/SIBImporter.cpp
index
f7471e5
..
2da683b
100644
(file)
--- a/
code/SIBImporter.cpp
+++ b/
code/SIBImporter.cpp
@@
-437,9
+437,9
@@
static aiVector3D CalculateVertexNormal(SIBMesh* mesh, uint32_t faceIdx, uint32_
// Move to whichever side we didn't just come from.
if (!edge.creased) {
- if (edge.faceA != prevFaceIdx && edge.faceA != faceIdx)
+ if (edge.faceA != prevFaceIdx && edge.faceA != faceIdx
&& edge.faceA != 0xffffffff
)
nextFaceIdx = edge.faceA;
- else if (edge.faceB != prevFaceIdx && edge.faceB != faceIdx)
+ else if (edge.faceB != prevFaceIdx && edge.faceB != faceIdx
&& edge.faceB != 0xffffffff
)
nextFaceIdx = edge.faceB;
}
}