Kaynağa Gözat

Fix missing editor singletons when dump extension api

Daylily-Zeleen 1 yıl önce
ebeveyn
işleme
fee3b85a2b
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      main/main.cpp

+ 1 - 0
main/main.cpp

@@ -2960,6 +2960,7 @@ bool Main::start() {
 	}
 
 	if (dump_extension_api) {
+		Engine::get_singleton()->set_editor_hint(true); // "extension_api.json" should always contains editor singletons.
 		GDExtensionAPIDump::generate_extension_json_file("extension_api.json", include_docs_in_extension_api_dump);
 	}