Blender Git Commit Log

Git Commits -> Revision a5c59fb

Revision a5c59fb by Jeroen Bakker (master)
November 15, 2021, 07:13 (GMT)
Fix T89260: Eevee crashes with custom node sockets.

Cause of this issue is that Custom Node Sockets info type was
initialized as SOCK_FLOAT when registering. Areas within the core that
would ignore custom socket types by checking its type would use the
socket as being a float type.

When custom node sockets have a property called default_value blender
tries to store it as an internal default value what failed in debug
builds.

This patch will set the socket type to SOCK_CUSTOM when registering a
custom socket type and allow, but skip storage of custom default values.
In this case the default values should already be stored as custom
properies.

Reviewed By: campbellbarton, JacquesLucke

Maniphest Tasks: T89260

Differential Revision: https://developer.blender.org/D13174

Commit Details:

Full Hash: a5c59fb90ef9c3e330556703c86e720740cf2c8d
Parent Commit: 622e6f0
Lines Changed: +4, -1

2 Modified Paths:

/source/blender/blenkernel/intern/node.cc (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021