summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-03-27 08:56:54 +0200
committerGitHub <noreply@github.com>2017-03-27 08:56:54 +0200
commitd4740a98537b1e7dcb6fb48176abdebe27eee83c (patch)
tree203498ba49466445bd2c6c47e74603b6699c3afd
parent9d28a5e7d99e3f089e11a929829443d0a922d030 (diff)
parente7fba3d2731203ce84d4749407332d0afb05340f (diff)
Merge pull request #8169 from RandomShaper/fix-uniform-move
Include uniform (Shift down) mode in only-one-Node2D dragging
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp2
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 3221208019..b07112855c 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -1534,7 +1534,7 @@ void CanvasItemEditor::_viewport_gui_input(const InputEvent &p_event) {
dto = dto - (drag == DRAG_ALL || drag == DRAG_NODE_2D ? 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 {