io_scene_3ds: Update for Blender 3.x #104507

Closed
Sebastian Sille wants to merge 12 commits from nrgsille-patch-2 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 4f31fe5ac7 - Show all commits

View File

@ -791,7 +791,7 @@ def extract_triangles(mesh):
img = None
for i, face in enumerate(mesh.loop_triangles):
f_v = face.vertices
v1, v2, v3 = f_v[0], f_v[1], f_v[2]
v1, v2, v3 = f_v
uf = mesh.uv_layers.active.data if do_uv else None
if do_uv:
@ -800,7 +800,7 @@ def extract_triangles(mesh):
img = get_uv_image(ma) if uf else None
if img is not None:
img = img.name
uv1, uv2, uv3 = f_uv[0], f_uv[1], f_uv[2]
uv1, uv2, uv3 = f_uv
"""Flag 0x1 sets CA edge visible, Flag 0x2 sets BC edge visible, Flag 0x4 sets AB edge visible
Flag 0x8 indicates a U axis texture wrap and Flag 0x10 indicates a V axis texture wrap