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
43 stars 0 forks source link

Blender 4.0.2 crashes when duplicating material #4

Closed UnKabaraQuiDev closed 10 months ago

UnKabaraQuiDev commented 10 months ago

I have a material with a Baker node image But when i duplicate it image Blender crashes. Here's the crash report:

# Blender 4.0.2, Commit date: 2023-12-05 07:41, Hash 9be62e85b727

# backtrace
/snap/blender/4300/blender() [0xf3a7b0]
/snap/blender/4300/blender() [0x8c42ec]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f3877842520]
/snap/blender/4300/blender() [0x1448a39]
/snap/blender/4300/blender() [0x13ae3a5]
/snap/blender/4300/blender() [0x1537d6e]
/snap/blender/4300/blender(PyObject_SetAttr+0x1d4) [0x83e694]
/snap/blender/4300/blender(_PyEval_EvalFrameDefault+0xde5) [0x874c75]
/snap/blender/4300/blender() [0x8730a2]
/snap/blender/4300/blender() [0x81a718]
/snap/blender/4300/blender(_PyEval_EvalFrameDefault+0x4fda) [0x878e6a]
/snap/blender/4300/blender() [0x8730a2]
/snap/blender/4300/blender() [0x153b9bd]
/snap/blender/4300/blender() [0x14595cc]
/snap/blender/4300/blender() [0x9b5d30]
/snap/blender/4300/blender() [0x9b60ce]
/snap/blender/4300/blender() [0x94ebab]
/snap/blender/4300/blender() [0x96ad31]
/snap/blender/4300/blender() [0x94ebab]
/snap/blender/4300/blender() [0x94f03a]
/snap/blender/4300/blender() [0x16959c0]
/snap/blender/4300/blender() [0x1645731]
/snap/blender/4300/blender() [0x1656405]
/snap/blender/4300/blender() [0xf5453d]
/snap/blender/4300/blender() [0xf551dd]
/snap/blender/4300/blender() [0xf55cb3]
/snap/blender/4300/blender() [0xf48840]
/snap/blender/4300/blender() [0x72521b]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f3877829d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f3877829e40]
/snap/blender/4300/blender() [0x8c022e]

# Python backtrace
  File "/home/pcy113/.config/blender/4.0/scripts/addons/baker_node/baker_node/baker_node.py", line 452 in _refresh_sockets_enabled
  File "/home/pcy113/.config/blender/4.0/scripts/addons/baker_node/baker_node/baker_node.py", line 208 in copy
avelgest commented 10 months ago

Looks like a bug in Blender 4.0. Changing the hide property of a node's socket in its copy method seems to cause a crash when the material is duplicated. However, in Blender 4.0 it doesn't appear to be necessary to set it in the copy method anyway so this should be easily worked around.

Thanks for the issue!