Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / space_node / node_edit.c
index 91101d1101eaf303c6eee6be25999d6ad4ceb976..8322e86d0273e259be743b30716309397029e431 100644 (file)
@@ -929,11 +929,13 @@ static int node_resize_modal(bContext *C, wmOperator *op, const wmEvent *event)
                case LEFTMOUSE:
                case MIDDLEMOUSE:
                case RIGHTMOUSE:
+                       if (event->val == KM_RELEASE) {
+                               node_resize_exit(C, op, false);
+                               ED_node_post_apply_transform(C, snode->edittree);
 
-                       node_resize_exit(C, op, false);
-                       ED_node_post_apply_transform(C, snode->edittree);
-
-                       return OPERATOR_FINISHED;
+                               return OPERATOR_FINISHED;
+                       }
+                       break;
        }
 
        return OPERATOR_RUNNING_MODAL;