Skip to content

Importer return an error on import #35

Description

@CPBPILOT

I have a fresh install of blender 3.6 and 2.93. I downloaded the addon and installed it using the install button under edit->preferences. Next, I went to import->MSFS gITF and browsed the official package's location. When I tried to open any gITF model I get the following error in both 3.6 and 2.93.

Python: Traceback (most recent call last):
  File "C:\Users\cpbpilot\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_msfs_gltf.py", line 283, in execute
    return import_msfs_gltf(context, self.filepath, self.report)
  File "C:\Users\cpbpilot\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_msfs_gltf.py", line 255, in import_msfs_gltf
    objects = create_objects(gltf, meshes)
  File "C:\Users\cpbpilot\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_msfs_gltf.py", line 221, in create_objects
    obj.scale = node['scale']
KeyError: 'scale'

or

Python: Traceback (most recent call last):
  File "C:\Users\cpbpilot\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_msfs_gltf.py", line 283, in execute
    return import_msfs_gltf(context, self.filepath, self.report)
  File "C:\Users\cpbpilot\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_msfs_gltf.py", line 255, in import_msfs_gltf
    objects = create_objects(gltf, meshes)
  File "C:\Users\cpbpilot\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_msfs_gltf.py", line 222, in create_objects
    obj.rotation_quaternion = node['rotation']
KeyError: 'rotation'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions