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

Import error - AttributeError: 'Mesh' object has no attribute 'colors' #85

Closed Rodg88 closed 4 months ago

Rodg88 commented 5 months ago

I get the following error when attempting to import this part now: bluedog_LM_Lab.zip (mu only)

Python: Traceback (most recent call last):
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\operators.py", line 79, in execute
    return import_mu_op(self, context, **keywords)
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\operators.py", line 37, in import_mu_op
    ret = import_mu(collection, filepath, create_colliders, force_armature, force_mesh)
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\import_mu.py", line 206, in import_mu
    return process_mu(mu, os.path.dirname(filepath)), mu
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\import_mu.py", line 193, in process_mu
    return create_object(mu, mu.obj, None)
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\import_mu.py", line 159, in create_object
    create_object(mu, child, obj)
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\import_mu.py", line 159, in create_object
    create_object(mu, child, obj)
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\import_mu.py", line 159, in create_object
    create_object(mu, child, obj)
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\import_mu.py", line 92, in create_object
    data = type_handlers[type(component)](mu, muobj, component, xform.name)
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\mesh.py", line 88, in create_mesh_component
    mesh = create_mesh (mu, mumesh, name)
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\mesh.py", line 74, in create_mesh
    create_colors(mu, mumesh.colors, mesh)
  File "C:\Users\rodge\Blender Foundation\Scripts\addons\io_object_mu\import_mu\mesh.py", line 56, in create_colors
    for i, c in enumerate(mesh.colors):
AttributeError: 'Mesh' object has no attribute 'colors'