mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-16 16:36:04 +10:00
Fixed bug in OBJ converter.
This one was messing up face types for faces with more than 4 vertices (which are truncated to quads).
This commit is contained in:
@@ -580,10 +580,10 @@ def generate_face(f):
|
||||
hasMaterial = True # for the moment OBJs without materials get default material
|
||||
|
||||
hasFaceUvs = False # not supported in OBJ
|
||||
hasFaceVertexUvs = ( len(f['uv']) == nVertices )
|
||||
hasFaceVertexUvs = ( len(f['uv']) >= nVertices )
|
||||
|
||||
hasFaceNormals = False # don't export any face normals (as they are computed in engine)
|
||||
hasFaceVertexNormals = ( len(f["normal"]) == nVertices and SHADING == "smooth" )
|
||||
hasFaceVertexNormals = ( len(f["normal"]) >= nVertices and SHADING == "smooth" )
|
||||
|
||||
hasFaceColors = False # not supported in OBJ
|
||||
hasFaceVertexColors = False # not supported in OBJ
|
||||
|
||||
Reference in New Issue
Block a user