Fixed favorite nodes list not being saved
Fixed favorite nodes list not being saved
This commit is contained in:
parent
f148e8eede
commit
edd93b7608
|
@ -55,9 +55,9 @@ void CreateDialog::popup_create(bool p_dont_clear, bool p_replace_mode) {
|
|||
|
||||
while (!f->eof_reached()) {
|
||||
String l = f->get_line().strip_edges();
|
||||
String name = l.split(" ")[0];
|
||||
|
||||
if (l != String()) {
|
||||
|
||||
if (ClassDB::class_exists(name) || ScriptServer::is_global_class(name)) {
|
||||
TreeItem *ti = recent->create_item(root);
|
||||
ti->set_text(0, l);
|
||||
ti->set_icon(0, EditorNode::get_singleton()->get_class_icon(l, base_type));
|
||||
|
|
|
@ -2401,7 +2401,6 @@ SceneTreeDock::SceneTreeDock(EditorNode *p_editor, Node *p_scene_root, EditorSel
|
|||
add_child(create_dialog);
|
||||
create_dialog->connect("create", this, "_create");
|
||||
create_dialog->connect("favorites_updated", this, "_update_create_root_dialog");
|
||||
EditorFileSystem::get_singleton()->connect("script_classes_updated", create_dialog, "_save_and_update_favorite_list");
|
||||
|
||||
rename_dialog = memnew(RenameDialog(scene_tree, &editor_data->get_undo_redo()));
|
||||
add_child(rename_dialog);
|
||||
|
|
Loading…
Reference in New Issue