veeti512 / wadblender

13 stars 4 forks source link

Wreid behaviour with "Texture Pages" button #11

Closed TokyoSU closed 3 years ago

TokyoSU commented 3 years ago

If i select it and import a object like lara (Lara Full Model) then it throw a error when creating material.

veeti512 commented 3 years ago

Can you send me please a wad that throws that error? I'm not able to replicate

veeti512 commented 3 years ago

Also the error message from the console would be helpful

TokyoSU commented 3 years ago

there for the error message (when selecting Lara Full Model and Texture Pages button):

Python: Traceback (most recent call last):
  File "C:\Users\vleva\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\wadblender-master\import_wad.py", line 298, in execute
    material = createPageMaterial(texture_path, context)
  File "C:\Users\vleva\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\wadblender-master\create_materials.py", line 124, in createPageMaterial
    set_idx = len(obj.material_slots)
AttributeError: 'NoneType' object has no attribute 'material_slots'

location: <unknown location>:-1

Ive used the lara tr1 to test it, it seem all wad cause that.

veeti512 commented 3 years ago

It should be fixed now!