diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-11-23 20:12:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-11-23 20:12:32 +0300 |
commit | 56da112ae0bb5210c883d3325644d467f1eda137 (patch) | |
tree | 9902d43d933fe800658a9e05af311ad702feb86a /source/blender/nodes | |
parent | f218e6d4da8dbfa4be809b46d6a6c923b7a6fc97 (diff) |
Fix T53360: crash with GLSL bump mapping and missing group output node.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/shader/node_shader_tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/node_shader_tree.c b/source/blender/nodes/shader/node_shader_tree.c index 40d1cfdfcb0..b4cdb158526 100644 --- a/source/blender/nodes/shader/node_shader_tree.c +++ b/source/blender/nodes/shader/node_shader_tree.c @@ -337,7 +337,9 @@ static void ntree_shader_link_builtin_group_normal( * some internal re-linking in order to avoid cycles. */ 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 = nodeFindSocket(group_output_node, SOCK_IN, |