Blender Git Loki

Git Commits -> Revision 419b4e0

Revision 419b4e0 by Jeroen Bakker (blender-v2.93-release)
November 23, 2021, 08:07 (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: 419b4e0b00c6e4191d1fd70925040e0215dd933d
Parent Commit: 215a6f1
Committed By: Philipp Oeser
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021