Include uniform (Shift down) mode in only-one-Node2D dragging

This commit is contained in:
Pedro J. Estébanez 2017-03-27 01:32:16 +02:00
parent a531051a61
commit 3bdb29b077

View File

@ -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 {