Error when clicking on "Update Material List" and "Save Atlas to.." buttons
Legonzaur opened this issue · 1 comments
Legonzaur commented
Grim-es commented
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)