Skip to content

Commit

Permalink
restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarcontar committed Jan 27, 2024
1 parent ac750d4 commit c479a71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions io_mesh_w3d/common/utils/mesh_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ def create_mesh(context, mesh_struct, coll):
if context.file_format == 'W3D':
for i, triangle in enumerate(mesh_struct.triangles):
surface_type_name = triangle.get_surface_type_name(context, i)
if surface_type_name not in mesh.face_maps:
if bpy.app.version < (4, 0, 0):
if bpy.app.version < (4, 0, 0):
if surface_type_name not in mesh_ob.face_maps:
mesh_ob.face_maps.new(name=surface_type_name)
else:
else:
if surface_type_name not in mesh.face_maps:
face_map = mesh.face_maps.add()
face_map.name = surface_type_name

Expand Down

0 comments on commit c479a71

Please sign in to comment.