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

Fixes the checkboxes update

Gilles Roudiere преди 7 години
родител
ревизия
e1de1b62ee
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      editor/plugins/canvas_item_editor_plugin.cpp

+ 3 - 0
editor/plugins/canvas_item_editor_plugin.cpp

@@ -4342,6 +4342,9 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) {
 	drag = DRAG_NONE;
 	bone_last_frame = 0;
 	additive_selection = false;
+
+	// Update the menus checkboxes
+	set_state(get_state());
 }
 
 CanvasItemEditor *CanvasItemEditor::singleton = NULL;