diff options
| author | Pedro J. Estébanez | 2017-03-27 01:32:16 +0200 |
|---|---|---|
| committer | Pedro J. Estébanez | 2017-03-27 01:32:16 +0200 |
| commit | 3bdb29b077178e9f1ee3104baf384ecd2467ec7b (patch) | |
| tree | 0d15cde965f9811151270dec115f284f185ead1e /editor/plugins/canvas_item_editor_plugin.cpp | |
| parent | a531051a61300d6ea7e04b003d72d9e591bbfe3b (diff) | |
| download | godot-3bdb29b077178e9f1ee3104baf384ecd2467ec7b.tar.gz godot-3bdb29b077178e9f1ee3104baf384ecd2467ec7b.tar.zst godot-3bdb29b077178e9f1ee3104baf384ecd2467ec7b.zip | |
Include uniform (Shift down) mode in only-one-Node2D dragging
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index e7189b0f4..50ca23612 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1535,7 +1535,7 @@ void CanvasItemEditor::_viewport_input_event(const InputEvent &p_event) { dto = dto - (drag == DRAG_ALL ? drag_from - drag_point_from : Vector2(0, 0)); - if (uniform && drag == DRAG_ALL) { + if (uniform && (drag == DRAG_ALL || drag == DRAG_NODE_2D)) { if (ABS(dto.x - drag_point_from.x) > ABS(dto.y - drag_point_from.y)) { dto.y = drag_point_from.y; } else { |
