diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-28 09:20:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-28 09:20:23 +0300 |
commit | c2863326afd41e3b07b44f27177e7f7b0692dab4 (patch) | |
tree | 27c6d2605a0293469a0f120bd23e032ff2087d8a /source/blender/nodes/shader | |
parent | ca05985ca72ecb33f81d25976ee56903dab892dc (diff) |
Cleanup: correct assert, remove redundant NULL checks
Diffstat (limited to 'source/blender/nodes/shader')
-rw-r--r-- | source/blender/nodes/shader/node_shader_tree.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/nodes/shader/node_shader_tree.c b/source/blender/nodes/shader/node_shader_tree.c index 2c69da2d9cd..7fe5b7df37d 100644 --- a/source/blender/nodes/shader/node_shader_tree.c +++ b/source/blender/nodes/shader/node_shader_tree.c @@ -641,9 +641,7 @@ static bool ntree_tag_ssr_bsdf_cb(bNode *fromnode, bNode *UNUSED(tonode), void * if (fromnode->id != NULL) { bNodeTree *ntree = (bNodeTree *)fromnode->id; bNode *group_output = ntree_group_output_node(ntree); - if (fromnode) { - ntree_shader_tag_ssr_node(ntree, group_output); - } + ntree_shader_tag_ssr_node(ntree, group_output); } break; case SH_NODE_BSDF_ANISOTROPIC: @@ -687,9 +685,7 @@ static bool ntree_tag_sss_bsdf_cb(bNode *fromnode, bNode *UNUSED(tonode), void * if (fromnode->id != NULL) { bNodeTree *ntree = (bNodeTree *)fromnode->id; bNode *group_output = ntree_group_output_node(ntree); - if (fromnode) { - ntree_shader_tag_sss_node(ntree, group_output); - } + ntree_shader_tag_sss_node(ntree, group_output); } break; case SH_NODE_BSDF_PRINCIPLED: |