diff options
author | Jacques Lucke <jacques@blender.org> | 2021-02-19 14:30:13 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-02-19 14:31:38 +0300 |
commit | e2caca1796088de03d66edfd7e8b5d2744df434d (patch) | |
tree | 7fb6072a9f71bc0255efba574a42bd7a48f0e08f /source/blender/editors/space_node | |
parent | 14f1d8962f6c8ab609daff3cca1702b35eee5b68 (diff) |
Nodes: only show warning icon if there are warnings
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/node_draw.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index c5eb1567bc4..8248283b3b0 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -1282,7 +1282,7 @@ static void node_add_error_message_button( const bContext *C, bNodeTree &ntree, bNode &node, const rctf &rect, float &icon_offset) { const NodeUIStorage *node_ui_storage = node_ui_storage_get_from_context(C, ntree, node); - if (node_ui_storage == nullptr) { + if (node_ui_storage == nullptr || node_ui_storage->warnings.is_empty()) { return; } |