summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2017-05-23 11:00:44 -0300
committerGeorge Marques <george@gmarqu.es>2017-05-23 11:03:17 -0300
commit86ef71fc95ff5d62ada42162b596172a57c78c91 (patch)
tree13df62ef970271d3456370db1aea39301fc204ce
parent5b0ecc9ad3d716d41f2d352cd758ac68cbce7f35 (diff)
Fix crash when interacting with the 2d editor
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp4
1 files 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<InputEvent> &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));