From 095f0c956ed8d60756c81c2c12c79e7500d826f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 8 Jul 2017 09:42:48 +0200 Subject: [PATCH] Fix wrong cast to Node2D instead of Control As reported by @sanikoyes. --- editor/plugins/canvas_item_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index e51254f84b1..7ce884a4558 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1170,7 +1170,7 @@ void CanvasItemEditor::_viewport_gui_input(const Ref &p_event) { canvas_item->edit_set_state(se->undo_state); if (canvas_item->cast_to()) canvas_item->cast_to()->edit_set_pivot(se->undo_pivot); - if (canvas_item->cast_to()) + if (canvas_item->cast_to()) canvas_item->cast_to()->set_pivot_offset(se->undo_pivot); } }