Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2013-04-03 11:56:36 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2013-04-03 11:56:36 +0400
commit3092b24ef2fb02e163dfcb80918ced4e375e7192 (patch)
tree370bc4e5d1c5a24e8b11345a26fcfd41f3860f25 /source/blender/nodes/intern
parentde0b01712774a45df77f24b46886e1d3556e17b2 (diff)
Fix for missing integer 'type' of the virtual extension socket in group nodes. This could lead to crash in node groups when trying to undefined stack values of the extension socket. type just needs to be set to SOCK_CUSTOM==-1, so the BI execution knows not to look for a stack entry.
Diffstat (limited to 'source/blender/nodes/intern')
-rw-r--r--source/blender/nodes/intern/node_socket.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/node_socket.c b/source/blender/nodes/intern/node_socket.c
index 74d44fe5f53..f28d6a20dab 100644
--- a/source/blender/nodes/intern/node_socket.c
+++ b/source/blender/nodes/intern/node_socket.c
@@ -420,6 +420,9 @@ static bNodeSocketType *make_socket_type_virtual(void)
/* associate the RNA type with the socket type */
RNA_struct_blender_type_set(srna, stype);
+ /* extra type info for standard socket types */
+ stype->type = SOCK_CUSTOM;
+
ED_init_node_socket_type_virtual(stype);
return stype;