space928 / Blender-O3D-IO-Public

A plugin supporting blender 2.79.x-3.x.x for importing and exporting OMSI .sco, .cfg, and .o3d files
GNU General Public License v3.0
39 stars 5 forks source link

Bug | Wont Import #97

Open Jharenoo opened 3 months ago

Jharenoo commented 3 months ago

Describe the bug

A clear and concise description of what the bug is. Plugin fails to import any model or map files and gives a error.

To Reproduce

Steps to reproduce the behaviour: [Be sure to attach any relevant files (o3d, cfg, dds, etc...) to the issue or provide a link to them here]

  1. Go to File
  2. Click on Import, OMSI Model Config
  3. Select OMSI Model
  4. See error

Expected behaviour

Plugin imports model

Screenshots

afbeelding

Additional context

Python: Traceback (most recent call last):
  File "C:\Users\Jhareno\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Blender-O3D-IO-Public\__init__.py", line 133, in execute
    io_o3d_import.do_import(self.filepath, context, self.import_x, self.override_text_encoding, self.hide_lods)
  File "C:\Users\Jhareno\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Blender-O3D-IO-Public\o3d_io\io_o3d_import.py", line 143, in do_import
    mesh.create_normals_split()
    ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Mesh' object has no attribute 'create_normals_split'