saturday06 / VRM-Addon-for-Blender

VRM Importer, Exporter and Utilities for Blender 2.93 to 4.2
https://vrm-addon-for-blender.info
MIT License
1.3k stars 142 forks source link

Bug report: VRM model not imported #176

Open modforge2 opened 1 year ago

modforge2 commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: just import vrm file in blender. File - import - vrm

Expected behavior something lagged and only armature imported

Screenshots

Desktop (please complete the following information)

Additional context

Error message :

Python: Traceback (most recent call last): File "(My Account)\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\VRM_Addon_for_Blender-release\importer\import_scene.py", line 106, in execute return create_blend_model( File "(My Account)\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\VRM_Addon_for_Blender-release\importer\import_scene.py", line 235, in create_blend_model ).import_vrm() File "(My Account)\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\VRM_Addon_for_Blender-release\importer\legacy_vrm_importer.py", line 34, in import_vrm self.make_material() File "(My Account)\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\VRM_Addon_for_Blender-release\importer\abstract_base_vrm_importer.py", line 347, in make_material self.reset_material(b_mat) File "(My Account)\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\VRM_Addon_for_Blender-release\importer\abstract_base_vrm_importer.py", line 326, in reset_material shader.clear_node_tree(material.node_tree) File "(My Account)\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\VRM_Addon_for_Blender-release\common\shader.py", line 403, in clear_node_tree while node_tree.links: AttributeError: 'NoneType' object has no attribute 'links'

modforge2 commented 1 year ago

2.12.1 same

saturday06 commented 1 year ago

This may be a bug in the add-on. Alternatively, this error occurs when the VRM file you are trying to import is corrupt. Could you please send me ( https://twitter.com/saturday06 ) the VRM file to investigate?

comdost commented 1 year ago

Had the same issue, but changing the export settings when exporting the VRM from Unity fixed it (pose freeze, divide vertex buffer), trying different combinations made it work when bringing it to blender.

saturday06 commented 1 year ago

I could probably fix it with the latest version, but could not reproduce it at hand.