Merge pull request #76288 from RedworkDE/net-glue-no-doccache
C#: Do not use DocCache when generating glue code
This commit is contained in:
commit
4abb7a6bac
|
@ -2240,7 +2240,7 @@ void EditorHelp::_gen_doc_thread(void *p_udata) {
|
||||||
|
|
||||||
static bool doc_gen_use_threads = true;
|
static bool doc_gen_use_threads = true;
|
||||||
|
|
||||||
void EditorHelp::generate_doc() {
|
void EditorHelp::generate_doc(bool p_use_cache) {
|
||||||
if (doc_gen_use_threads) {
|
if (doc_gen_use_threads) {
|
||||||
// In case not the first attempt.
|
// In case not the first attempt.
|
||||||
_wait_for_thread();
|
_wait_for_thread();
|
||||||
|
@ -2256,7 +2256,7 @@ void EditorHelp::generate_doc() {
|
||||||
doc = memnew(DocTools);
|
doc = memnew(DocTools);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (first_attempt && FileAccess::exists(get_cache_full_path())) {
|
if (p_use_cache && first_attempt && FileAccess::exists(get_cache_full_path())) {
|
||||||
if (doc_gen_use_threads) {
|
if (doc_gen_use_threads) {
|
||||||
thread.start(_load_doc_thread, nullptr);
|
thread.start(_load_doc_thread, nullptr);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -204,7 +204,7 @@ protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void generate_doc();
|
static void generate_doc(bool p_use_cache = true);
|
||||||
static DocTools *get_doc_data();
|
static DocTools *get_doc_data();
|
||||||
static void cleanup_doc();
|
static void cleanup_doc();
|
||||||
static String get_cache_full_path();
|
static String get_cache_full_path();
|
||||||
|
|
|
@ -3894,7 +3894,7 @@ void BindingsGenerator::_log(const char *p_format, ...) {
|
||||||
void BindingsGenerator::_initialize() {
|
void BindingsGenerator::_initialize() {
|
||||||
initialized = false;
|
initialized = false;
|
||||||
|
|
||||||
EditorHelp::generate_doc();
|
EditorHelp::generate_doc(false);
|
||||||
|
|
||||||
enum_types.clear();
|
enum_types.clear();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue