Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / space_node / node_edit.c
index 91101d1..8322e86 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;