summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-05-05 17:04:50 +0200
committerkobewi <kobewi4e@gmail.com>2022-05-05 19:22:48 +0200
commite7da3ce96e5dec5231c6c19fcac984c4a0303dde (patch)
treebecff083d7e166950276d7e81d819e3b3d416d5f /editor/project_settings_editor.cpp
parent88a440826ad197ea5d3a98e8c64946c468fc63cd (diff)
downloadredot-engine-e7da3ce96e5dec5231c6c19fcac984c4a0303dde.tar.gz
Disallow Callable, Signal and RID in export arrays
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r--editor/project_settings_editor.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index fa83a58cff..f684c0e0c9 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -515,12 +515,12 @@ void ProjectSettingsEditor::_update_theme() {
type_box->clear();
for (int i = 0; i < Variant::VARIANT_MAX; i++) {
- // There's no point in adding Nil types, and Object types
- // can't be serialized correctly in the project settings.
- if (i != Variant::NIL && i != Variant::OBJECT) {
- String type = Variant::get_type_name(Variant::Type(i));
- type_box->add_icon_item(get_theme_icon(type, SNAME("EditorIcons")), type, i);
+ if (i == Variant::NIL || i == Variant::OBJECT || i == Variant::CALLABLE || i == Variant::SIGNAL || i == Variant::RID) {
+ // These types can't be serialized properly, so skip them.
+ continue;
}
+ String type = Variant::get_type_name(Variant::Type(i));
+ type_box->add_icon_item(get_theme_icon(type, SNAME("EditorIcons")), type, i);
}
}