From 0120f0473f6e5e6e5dc08e8134691a3b051ae554 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 8 Aug 2017 21:12:32 -0300 Subject: [PATCH] Clean up canvas item when changing state, closes #5977 (cherry picked from commit 950b205609ce41ab4804196a125e91274eb20258) --- editor/plugins/canvas_item_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index d504655597b..cece84db099 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -349,6 +349,8 @@ void CanvasItemEditor::set_state(const Dictionary &p_state) { int idx = edit_menu->get_popup()->get_item_index(SNAP_USE_PIXEL); edit_menu->get_popup()->set_item_checked(idx, snap_pixel); } + + viewport->update(); } void CanvasItemEditor::_add_canvas_item(CanvasItem *p_canvas_item) {