1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Fixed favorite nodes list not being saved

Fixed favorite nodes list not being saved
This commit is contained in:
DualMatrix
2018-09-19 00:30:01 +02:00
parent f148e8eede
commit edd93b7608
2 changed files with 2 additions and 3 deletions

View File

@@ -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));