Fix T53360: crash with GLSL bump mapping and missing group output node.

This commit is contained in:
Brecht Van Lommel 2017-11-23 18:12:32 +01:00
parent f218e6d4da
commit 56da112ae0

@ -337,7 +337,9 @@ static void ntree_shader_link_builtin_group_normal(
* some internal re-linking in order to avoid cycles. * some internal re-linking in order to avoid cycles.
*/ */
bNode *group_output_node = ntreeFindType(group_ntree, NODE_GROUP_OUTPUT); bNode *group_output_node = ntreeFindType(group_ntree, NODE_GROUP_OUTPUT);
BLI_assert(group_output_node != NULL); if (group_output_node == NULL) {
return;
}
bNodeSocket *group_output_node_displacement_socket = bNodeSocket *group_output_node_displacement_socket =
nodeFindSocket(group_output_node, nodeFindSocket(group_output_node,
SOCK_IN, SOCK_IN,