소스 검색

Fix wrong project opening in some situations, hidden nodes were not reordered

Marc Gilleron 5 년 전
부모
커밋
4c7d02dea1
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      editor/project_manager.cpp

+ 1 - 3
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