enenra / space-engineers-utilities

A Blender 4.0+ addon to streamline working on assets for Space Engineers.
https://spaceengineers.wiki.gg/wiki/Modding/Tools/Space_Engineers_Utilities
GNU General Public License v3.0
47 stars 12 forks source link

complete import failed on 4 lod models #333

Closed chipstix213 closed 2 years ago

chipstix213 commented 2 years ago

Describe the bug 4th LOD model and remapping of materials failed when importing a series of block models.

Python: Traceback (most recent call last): File "C:\Users\Chris.compton\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\space-engineers-utilities\importing\seut_ot_import_complete.py", line 105, in execute context.view_layer.active_layer_collection = scene.view_layers['SEUT'].layer_collection.children['SEUT' + tag].children[col.name] AttributeError: 'NoneType' object has no attribute 'name'

location: :-1

To Reproduce Steps to reproduce the behaviour: use the complete import function to import large block drill head models.

the import will break at the 4th LOD model and stop short remapping materials.

Expected behaviour A clear and concise description of what you expected to happen.

Versions (please complete the following information):

Additional context Add any other context about the problem here.