UuuNyaa / blender_mmd_tools

MMD Tools is a blender addon for importing/exporting Models and Motions of MikuMikuDance.
GNU General Public License v3.0
2.18k stars 102 forks source link

v4.0.0-pre : error console log when load blend file #147

Closed listelin closed 5 months ago

listelin commented 5 months ago

blender 4.1.1 MMD Tools v4.0.0 pre-release

when load blend file, the following error appears in the console log I don't see any other problems, only logs.

Read blend: "E:\dev\myblend\mmd41import-test.blend"
Error in bpy.app.handlers.load_post[7]:
Traceback (most recent call last):
  File "C:\Users\a\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\mmd_tools\handlers.py", line 21, in load_hander
    MigrationFnMaterial.update_mmd_shader()
  File "C:\Users\a\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\mmd_tools\core\material.py", line 682, in update_mmd_shader
    if "Color" in mmd_shader_node_tree.outputs:
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ShaderNodeTree' object has no attribute 'outputs'
UuuNyaa commented 5 months ago

Thank you for the report 😀 I have fixed it in mmd_tools v4.1.0 Could you please test it when you have time?

listelin commented 5 months ago

I have confirmed that the error message is no longer output. Thank you!