diff options
Diffstat (limited to 'source/blender/editors/space_node/node_select.c')
-rw-r--r-- | source/blender/editors/space_node/node_select.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_select.c b/source/blender/editors/space_node/node_select.c index 704b7350bb9..1da79671c8e 100644 --- a/source/blender/editors/space_node/node_select.c +++ b/source/blender/editors/space_node/node_select.c @@ -370,6 +370,11 @@ static int node_select_grouped_exec(bContext *C, wmOperator *op) { SpaceNode *snode = CTX_wm_space_node(C); bNode *node_act = nodeGetActive(snode->edittree); + + if (node_act == NULL) { + return OPERATOR_CANCELLED; + } + bNode *node; bool changed = false; const bool extend = RNA_boolean_get(op->ptr, "extend"); |