Merge branch 'master' into blender2.8
authorPhilipp Oeser <info@graphics-engineer.com>
Wed, 13 Jun 2018 12:19:57 +0000 (14:19 +0200)
committerPhilipp Oeser <info@graphics-engineer.com>
Wed, 13 Jun 2018 12:19:57 +0000 (14:19 +0200)
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;