mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Use path instead of file name when updating script classes
The _script_class_file_to_path contains a map of paths to classes, but when updating the script classes for new class names, the file name is used instead. This meant new classes weren't able to be used in exported variables until the project is reloaded (as the _script_class_file_to_path is initially set with the full path) Fixes #70718
This commit is contained in:
parent
cd031fd31a
commit
d0cdaadb32
1 changed files with 1 additions and 1 deletions
|
@ -1543,7 +1543,7 @@ void EditorFileSystem::_update_script_classes() {
|
|||
|
||||
ScriptServer::add_global_class(efd->files[index]->script_class_name, efd->files[index]->script_class_extends, lang, path);
|
||||
EditorNode::get_editor_data().script_class_set_icon_path(efd->files[index]->script_class_name, efd->files[index]->script_class_icon_path);
|
||||
EditorNode::get_editor_data().script_class_set_name(efd->files[index]->file, efd->files[index]->script_class_name);
|
||||
EditorNode::get_editor_data().script_class_set_name(path, efd->files[index]->script_class_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue