2
0
Эх сурвалжийг харах

Fix loop of scene tabs updates

It was a regression of f8e8b7d1a231bb5e54abd3c7ed26a76fcb8a89cd,
thanks to @dragmz for finding it.
Rémi Verschelde 8 жил өмнө
parent
commit
c846e49a7d

+ 2 - 1
editor/editor_node.cpp

@@ -364,7 +364,8 @@ void EditorNode::_notification(int p_what) {
 		dock_tab_move_right->set_icon(theme->get_icon("Forward", "EditorIcons"));
 		update_menu->set_icon(gui_base->get_icon("Progress1", "EditorIcons"));
 	}
-	if (p_what = Control::NOTIFICATION_RESIZED) {
+
+	if (p_what == Control::NOTIFICATION_RESIZED) {
 		_update_scene_tabs();
 	}
 }