From f71b61e99dcf21cea3bd4ac01bf22893ca222bb5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 31 May 2011 09:56:32 +0000 Subject: fix for x3d import/export errors. --- io_scene_x3d/export_x3d.py | 2 +- io_scene_x3d/import_x3d.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'io_scene_x3d') diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index abb50b84..84904625 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -464,7 +464,7 @@ def export(file, def vertex_key(fidx, f_cnr_idx): return ( - mesh_faces_uv[fidx].uv[f_cnr_idx].to_tuple(4), + mesh_faces_uv[fidx].uv[f_cnr_idx][:], ) elif is_col: slot_col = 0 diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index d3ffbb8b..86e68394 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -2314,7 +2314,7 @@ def importLamp(node, spec, ancestry, global_matrix): bpyob = node.blendObject = bpy.data.objects.new("TODO", bpylamp) bpy.context.scene.objects.link(bpyob) - bpyob.matrix_world = getFinalMatrix(node, mtx, ancestry. global_matrix) + bpyob.matrix_world = getFinalMatrix(node, mtx, ancestry, global_matrix) def importViewpoint(node, ancestry, global_matrix): -- cgit v1.2.3