Blender Git Commit Log

Git Commits -> Revision ebf23b5

Revision ebf23b5 by Lukas Toenne (master)
January 7, 2014, 09:54 (GMT)
Fix T38075, crash from shader node add/replace tree view template.

The sanity check for copying socket default value was using the socket
idname for type compatibility checks, which is too strict. Subtypes
would not be recognized as copyable, but since only the plain data type
is needed below this is all that needs to be checked.

That alone would not cause crash (just missing default value copy),
but the tree view template was messing with the default_value DNA
directly by freeing it in advance, which is not necessary and should
be left to blenkernel when freeing the node. Otherwise this would
leave the node invalid without a default_value if the copy function
bails out.

Commit Details:

Full Hash: ebf23b51448e4bc9c67d656093ecc01be882c9d3
Parent Commit: 54ebaad
Lines Changed: +1, -5

2 Modified Paths:

/source/blender/editors/space_node/node_templates.c (+0, -4) (Diff)
/source/blender/nodes/intern/node_socket.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021