Skip to content

Commit 58f5661

Browse files
committed
Fix global scripts not being added because of missing "is_tool" or "is_abstract"
1 parent 296de7d commit 58f5661

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

editor/editor_file_system.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -1620,17 +1620,13 @@ void EditorFileSystem::_thread_func_sources(void *_userdata) {
16201620

16211621
void EditorFileSystem::_remove_invalid_global_class_names(const HashSet<String> &p_existing_class_names) {
16221622
List<StringName> global_classes;
1623-
bool must_save = false;
16241623
ScriptServer::get_global_class_list(&global_classes);
16251624
for (const StringName &class_name : global_classes) {
16261625
if (!p_existing_class_names.has(class_name)) {
16271626
ScriptServer::remove_global_class(class_name);
1628-
must_save = true;
16291627
}
16301628
}
1631-
if (must_save) {
1632-
ScriptServer::save_global_classes();
1633-
}
1629+
ScriptServer::save_global_classes();
16341630
}
16351631

16361632
String EditorFileSystem::_get_file_by_class_name(EditorFileSystemDirectory *p_dir, const String &p_class_name, EditorFileSystemDirectory::FileInfo *&r_file_info) {

0 commit comments

Comments
 (0)