Преглед на файлове

Merge pull request #8880 from vnen/fix-canvas-item-editor-crash

Fix crash when interacting with the 2d editor
Rémi Verschelde преди 8 години
родител
ревизия
9e2b3f0903
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      editor/plugins/canvas_item_editor_plugin.cpp

+ 2 - 2
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));