Merge pull request #34898 from veryprofessionaldodo/33420
Recent Nodes now respect Editor Profiles #33420
This commit is contained in:
commit
7a941b11d2
1 changed files with 2 additions and 1 deletions
|
@ -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 l = f->get_line().strip_edges();
|
||||||
String name = l.split(" ")[0];
|
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);
|
TreeItem *ti = recent->create_item(root);
|
||||||
ti->set_text(0, l);
|
ti->set_text(0, l);
|
||||||
ti->set_icon(0, EditorNode::get_singleton()->get_class_icon(l, base_type));
|
ti->set_icon(0, EditorNode::get_singleton()->get_class_icon(l, base_type));
|
||||||
|
|
Loading…
Reference in a new issue