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); } }