diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-03-27 01:32:24 +0200 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-03-27 01:32:24 +0200 |
commit | e7fba3d2731203ce84d4749407332d0afb05340f (patch) | |
tree | db47b549ceb3ba4b3503baa8ef8f16be03e92aeb /editor/plugins/canvas_item_editor_plugin.cpp | |
parent | c103f32ea3b19c3588d54dcef98e307f8b823f4c (diff) |
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 7b015e484f..9efbcbf199 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1540,7 +1540,7 @@ void CanvasItemEditor::_viewport_gui_input(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 { |