diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-08 16:06:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 16:06:47 +0100 |
commit | 7a941b11d20d736ec1007140ffd4019fcdfab27f (patch) | |
tree | a98ee39c333ca90954e8ef44457a20550f2b98df | |
parent | 5e4d465356d3de2f4f6ee95722c4b8786e08e71b (diff) | |
parent | d88f620c521491d39d8994be9687e3f82457a511 (diff) |
Merge pull request #34898 from veryprofessionaldodo/33420
Recent Nodes now respect Editor Profiles #33420
-rw-r--r-- | editor/create_dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index 7788d6349a..df423bfa0e 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -59,7 +59,8 @@ void CreateDialog::popup_create(bool p_dont_clear, bool p_replace_mode, const St String l = f->get_line().strip_edges(); String name = l.split(" ")[0]; - if (ClassDB::class_exists(name) || ScriptServer::is_global_class(name)) { + if ((ClassDB::class_exists(name) || ScriptServer::is_global_class(name)) && !_is_class_disabled_by_feature_profile(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)); |