Skip to content

Commit

Permalink
Fix for issue #181
Browse files Browse the repository at this point in the history
  • Loading branch information
sercero committed Aug 22, 2023
1 parent fc22b3e commit cc892f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions io_ogre/ogre/ogre_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,8 +1053,9 @@ def bCreateSubMeshes(meshData, meshName):
me.loops[i*3].vertex_index = faces[i][0]
me.loops[i*3+1].vertex_index = faces[i][1]
me.loops[i*3+2].vertex_index = faces[i][2]
me.polygons[i].loop_start = i*3
me.polygons[i].loop_total = 3
me.polygons[i].loop_start = i * 3
# NOTE: Doesn't work in Blender 3.6+ and this isn't needed anyway.
#me.polygons[i].loop_total = 3
me.polygons[i].use_smooth

#meshFaces = me.tessfaces
Expand Down

0 comments on commit cc892f5

Please sign in to comment.