diff --git a/io_mesh_w3d/w3x/io_xml.py b/io_mesh_w3d/w3x/io_xml.py index 6f7964d6..63f7333f 100644 --- a/io_mesh_w3d/w3x/io_xml.py +++ b/io_mesh_w3d/w3x/io_xml.py @@ -106,6 +106,7 @@ def parse_vector2(xml_vector2): def format(value): return '{:.6f}'.format(value) + def create_vector2(vec2, parent, name): vector = create_node(parent, name) vector.set('X', format(vec2.x)) diff --git a/tests/w3d/cases/test_roundtrip.py b/tests/w3d/cases/test_roundtrip.py index 83710d35..52f0906d 100644 --- a/tests/w3d/cases/test_roundtrip.py +++ b/tests/w3d/cases/test_roundtrip.py @@ -191,7 +191,7 @@ def test_roundtrip_HAM_tc_animation(self): self.assertTrue('Brakelight' in bpy.data.objects) def test_roundtrip_no_armature(self): - hierarchy_name = 'TestModelName' + hierarchy_name = 'TestModelName' hierarchy = get_hierarchy(hierarchy_name) hierarchy.pivots = [get_roottransform(), get_hierarchy_pivot(name='sword', parent=0),