animate1978 / MB-Lab

MB-Lab is a character creation tool for Blender 4.0 and above, based off ManuelBastioniLAB
Other
1.76k stars 308 forks source link

KeyError: roughness #403

Closed ecations closed 3 months ago

ecations commented 3 months ago

Describe the bug I get a keyError when trying to finalize a character in Blender 4.0, using mblab 1.8.

To Reproduce Steps to reproduce the behavior:

  1. Create a character
  2. Click on Finalize character and save to desktop.
  3. Look at system console
  4. See this error: Character updated in 0.10611104965209961 secs Warning: Cannot move modifier beyond the start of the list Traceback (most recent call last): File "C:\Users\myusername\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MBLab__init__.py", line 1712, in execute mblab_humanoid.save_all_textures(self.filepath) File "C:\Users\myusername\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MBLab\humanoid.py", line 532, in save_all_textures self.mat_engine.save_texture(new_filepath, target) File "C:\Users\myusername\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MBLab\materialengine.py", line 337, in save_texture img_name = self.image_file_names[shader_target] KeyError: 'roughness'

Expected behavior Finalization should work.

animate1978 commented 3 months ago

The most recent commit to the 4_0_dev_branch has fixed this bug

animate1978 commented 3 months ago

This has been committed to the master branch as well.