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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-05-02 19:47:15 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-05-02 19:47:15 +0400
commitb2a9d012b4e0ce820cb81ce170d84bed143ac041 (patch)
tree84bb4469b548206e624497cbadb98a5391312c5f /source/blender/nodes
parent1d2e1018f7babf913d2f6d09f921d3137a8999fa (diff)
Fix #31236: linking a socket of a different type to an existing node group output
would crash, did not convert default value storage correctly.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/intern/node_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/node_common.c b/source/blender/nodes/intern/node_common.c
index 13882d631d8..3aadcef4c82 100644
--- a/source/blender/nodes/intern/node_common.c
+++ b/source/blender/nodes/intern/node_common.c
@@ -551,7 +551,8 @@ static bNodeSocket *group_verify_socket(bNodeTree *ntree, ListBase *lb, int in_o
sock->groupsock = gsock;
BLI_strncpy(sock->name, gsock->name, sizeof(sock->name));
- sock->type= gsock->type;
+ if(gsock->type != sock->type)
+ nodeSocketSetType(sock, gsock->type);
/* XXX hack: group socket input/output roles are inverted internally,
* need to change the limit value when making actual node sockets from them.