diff options
author | QbieShay <cislaghi.ilaria@gmail.com> | 2019-02-04 22:59:51 +0100 |
---|---|---|
committer | QbieShay <cislaghi.ilaria@gmail.com> | 2019-02-12 21:24:07 +0100 |
commit | c4eb974a8a73eabc29dd3be47b09969a4348fa20 (patch) | |
tree | 6cb120496111ee367f656f8999aa73a3382ec304 /core | |
parent | 16d402147b9057c9f7d43ef9b46eb8654e5483cc (diff) |
Added a setting for files in which the editor should search (project wise).
Remembers the tickboxes but only during the same execution
Fixes #25440
Diffstat (limited to 'core')
-rw-r--r-- | core/project_settings.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/project_settings.cpp b/core/project_settings.cpp index 8d05d7cc74..303e363d17 100644 --- a/core/project_settings.cpp +++ b/core/project_settings.cpp @@ -1005,6 +1005,15 @@ ProjectSettings::ProjectSettings() { GLOBAL_DEF("application/config/custom_user_dir_name", ""); GLOBAL_DEF("application/config/project_settings_override", ""); + PoolStringArray extensions = PoolStringArray(); + extensions.push_back("gd"); + if (Engine::get_singleton()->has_singleton("GodotSharp")) + extensions.push_back("cs"); + extensions.push_back("shader"); + + GLOBAL_DEF("editor/search_in_file_extensions", extensions); + custom_prop_info["editor/search_in_file_extensions"] = PropertyInfo(Variant::POOL_STRING_ARRAY, "editor/search_in_file_extensions"); + action = Dictionary(); action["deadzone"] = Variant(0.5f); events = Array(); |