taniwha / io_object_mu

Python .mu reader/writer and blender import/export addon
GNU General Public License v2.0
122 stars 51 forks source link

Error importing crafts #72

Open 1ucket opened 2 years ago

1ucket commented 2 years ago

Blender: 3.3.1 and 2.83 (verified with both) KSP: 1.12.4 New instance cloned and all mods removed with ckan Before removing the mods nothing happened when importing a craft. After removing the mods it loads for ~10s and below error message appears.

  File "C:\Users\censored\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 106, in execute
    return import_craft_op(self, context, **keywords)
  File "C:\Users\censored\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 80, in import_craft_op
    obj = import_craft(filepath)
  File "C:\Users\censored\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\io_object_mu-master\import_craft\import_craft.py", line 60, in import_craft
    part = gamedata.parts[pname].get_model()
  File "C:\Users\censored\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\io_object_mu-master\import_craft\part.py", line 63, in get_model
    self.model = compile_model(self.db, self.path, "part", self.name,
  File "C:\Users\censored\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\io_object_mu-master\model\model.py", line 49, in compile_model
    obj = mdl.instantiate(f"{name}:submodel", position, rotation, scale)
AttributeError: 'NoneType' object has no attribute 'instantiate'