aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/canvas_item_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-03-27 08:57:05 +0200
committerGitHub2017-03-27 08:57:05 +0200
commite3d6d863af4a0b734e90771f76bee1ccb905ee6d (patch)
tree64af34fda6f07a80e343ffdd012420fdfbb90433 /editor/plugins/canvas_item_editor_plugin.cpp
parentb3d1113ae3ed8974e85025ddaea178683d279de9 (diff)
parent3bdb29b077178e9f1ee3104baf384ecd2467ec7b (diff)
downloadgodot-e3d6d863af4a0b734e90771f76bee1ccb905ee6d.tar.gz
godot-e3d6d863af4a0b734e90771f76bee1ccb905ee6d.tar.zst
godot-e3d6d863af4a0b734e90771f76bee1ccb905ee6d.zip
Merge pull request #8170 from RandomShaper/fix-uniform-move-2.1
Include uniform (Shift down) mode in only-one-Node2D dragging (2.1)
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
-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 64e429e3c..0c44e7c2d 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -1529,7 +1529,7 @@ void CanvasItemEditor::_viewport_input_event(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 {