From 86ef71fc95ff5d62ada42162b596172a57c78c91 Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 23 May 2017 11:00:44 -0300 Subject: Fix crash when interacting with the 2d editor --- editor/plugins/canvas_item_editor_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 2f1a4ce115..a626dffc3c 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1531,8 +1531,8 @@ void CanvasItemEditor::_viewport_gui_input(const Ref &p_event) { continue; } - bool uniform = b->get_shift(); - bool symmetric = b->get_alt(); + bool uniform = m->get_shift(); + bool symmetric = m->get_alt(); dto = dto - (drag == DRAG_ALL || drag == DRAG_NODE_2D ? drag_from - drag_point_from : Vector2(0, 0)); -- cgit v1.2.3