summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-08-14 00:02:45 +0300
committerRémi Verschelde <rverschelde@gmail.com>2024-09-16 16:38:08 +0200
commitfac12603efab36c1dbbc80b936a9ca312b268b02 (patch)
treee7099897337d5e3e7784765758c23a446259e71d /main
parent8c5edcb03af76ec93e61c253ca54973702753156 (diff)
downloadredot-engine-fac12603efab36c1dbbc80b936a9ca312b268b02.tar.gz
[.NET] Move search in files extension list definition to be after Scene level module init.
(cherry picked from commit 69d52ed081ac636a0ac696984c304c5284c902a7)
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 588b8da9bd..3a6b3aa273 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -3089,6 +3089,14 @@ Error Main::setup2(bool p_show_boot_logo) {
OS::get_singleton()->benchmark_end_measure("Scene", "Modules and Extensions");
}
+ PackedStringArray extensions;
+ extensions.push_back("gd");
+ if (ClassDB::class_exists("CSharpScript")) {
+ extensions.push_back("cs");
+ }
+ extensions.push_back("gdshader");
+ GLOBAL_DEF_NOVAL(PropertyInfo(Variant::PACKED_STRING_ARRAY, "editor/script/search_in_file_extensions"), extensions); // Note: should be defined after Scene level modules init to see .NET.
+
OS::get_singleton()->benchmark_end_measure("Startup", "Scene");
#ifdef TOOLS_ENABLED