From 4c7d02dea1a601b89a6ba438c04b4764ba5e0360 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Mon, 30 Dec 2019 17:04:29 +0000 Subject: [PATCH] Fix wrong project opening in some situations, hidden nodes were not reordered --- editor/project_manager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index a913c494a36..44a817ec968 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1409,9 +1409,7 @@ void ProjectList::sort_projects() { for (int i = 0; i < _projects.size(); ++i) { Item &item = _projects.write[i]; - if (item.control->is_visible()) { - item.control->get_parent()->move_child(item.control, i); - } + item.control->get_parent()->move_child(item.control, i); } // Rewind the coroutine because order of projects changed