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

mbastlab_subdvision causes a SurfaceDeform mesh to about rendering. #382

Open jamestomk opened 1 year ago

jamestomk commented 1 year ago

Describe the bug Using a SurfaceDeform mesh to bind "clothing" to the character mesh causes a render abort on that mesh.

To Reproduce Steps to reproduce the behavior:

  1. Download the example blend file from blend-exchange.com, open in blender (3.2)
  2. Window >> Toggle System Console
  3. F12 to render, note the error message in the console and the "pants" that render in the "non-SD" position compared to the 3D-View
  4. ERROR (bke.modifier): C:\Users\blender\git\blender-v320\blender.git\source\blender\blenkernel\intern\modifier.c:456 BKE_modifier_set_error: Object: "Pants.SD", Modifier: "SurfaceDeform", Target polygons changed from 12456 to 3114
  5. In the "male_21_brnEyes" modifier "mbastlab_subdvision", change Render from 2 to 1, then F12 to render. Render is correct.
  6. Can also change "mbastlab_subdvision", change Viewport from 1 to 2, and immediately see 3D Viewport problem and error again in the Console,

Expected behavior I don't know if your code can "catch" this error and somehow be more informative in the blender console output. Or perhaps a documentation note is worthy.

Screenshots

Additional context Here is a stackexchange description of the problem, that also contains a v3.2 blend file to download.

Perhaps this could also be a bug in SD, however this indicates that it isn't or is tolerated?

Logs Console output is like: ERROR (bke.modifier): C:\Users\blender\git\blender-v320\blender.git\source\blender\blenkernel\intern\modifier.c:456 BKE_modifier_set_error: Object: "Pants.SD", Modifier: "SurfaceDeform", Target polygons changed from 12456 to 49824