Grim-es/material-combiner-addon

Error when clicking on "Update Material List" and "Save Atlas to.." buttons

Legonzaur opened this issue · 1 comments

I get this error when I try to use this plugin : AttributeError: 'Material' object has no attribute 'texture_slots

Using Blender 3.5

image

Screenshot of Blender when I click on "Update material list"
image

Screenshot of Blender when I click on "Save Atlas to.."
image

Thanks for the feedback. Looks like on one of materials Use nodes is not enabled, so its fallbacked to the method that only works on Blender version 2.79. For now, enable nodes on all materials. The fix i'll push on the next update.

Or until the next update you can manually open materials.py and on line 83, change:

if globs.is_blender_2_80_or_newer and node_tree:
    shader = get_shader_type(mat)
    node_name = shader_image_nodes.get(shader)
    if node_name:
        packed_file = get_packed_file(node_tree.nodes[node_name].image)
else:
    packed_file = get_packed_file(get_image(get_texture(mat)))

to:

if globs.is_blender_2_79_or_older:
    packed_file = get_packed_file(get_image(get_texture(mat)))
elif node_tree:
    shader = get_shader_type(mat)
    node_name = shader_image_nodes.get(shader)
    if node_name:
        packed_file = get_packed_file(node_tree.nodes[node_name].image)