avelgest / baker-node

A Blender add-on that adds a node to the Shader Editor which can bake its input to an image, vertex attribute or sculpt mask with one click.
GNU General Public License v2.0
41 stars 0 forks source link

When add a new nodetree,bake node will lost? #6

Closed chenpaner closed 3 months ago

chenpaner commented 3 months ago

lost node

When I add a new NodeTree or append a new NodeTree in blender 4.1,bake node will lost? I try it in blender_factory_startup!

avelgest commented 3 months ago

Thanks for the issue! Which specific release version of Blender are you using? I've been able to reproduce the bug in Blender 4.1.0, but not 4.1.1 or other versions.

This seems to be a bug in Blender affecting all nodes derived from ShaderNodeCustomGroup when shader node tree assets are linked or appended. I don't think there's any simple way for the add-on to work around this, but versions 4.1.1 and 4.2 alpha are working correctly for me, so if they fix the problem then no changes should be necessary.

chenpaner commented 3 months ago

This error occurred in my blender 4.1.0. I guess it's also a blender bug, because there are other ShaderNodeCustomGroup plugins that also encounter this problem, thank you for your reply !