Skip to content

Commit bcca632

Browse files
committed
Fixes rotation_axis_normalized.test.py and library_header.test.py
1 parent 56696f3 commit bcca632

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

io_xplane2blender/importer/xplane_imp_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def import_obj(filepath: Union[pathlib.Path, str]) -> str:
5656
# pprint(lines)
5757
pass
5858

59-
if not (lines[0] in {"A", "I"} and lines[1:3] == ["800", "OBJ"]):
59+
if not lines or not (lines[0] in {"A", "I"} and lines[1:3] == ["800", "OBJ"]):
6060
logger.error(
6161
".obj file must start with exactly the OBJ header. Check filetype and content"
6262
)

tests/importer/animation/rotation_axis_normalized.test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def deg_euler(comps: Tuple[float]) -> Euler:
6161

6262
self.assertVectorAlmostEqual(
6363
bpy.data.objects["anim_rotate_begin_axis_aligned"].rotation_euler,
64-
deg_euler((0, 0, 80)),
64+
deg_euler((0, 0, -80)),
6565
places=PRECISION_KEYFRAME,
6666
)
6767

0 commit comments

Comments
 (0)