You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
C#: Do not use DocCache when generating glue code
This commit is contained in:
@@ -2240,7 +2240,7 @@ void EditorHelp::_gen_doc_thread(void *p_udata) {
|
||||
|
||||
static bool doc_gen_use_threads = true;
|
||||
|
||||
void EditorHelp::generate_doc() {
|
||||
void EditorHelp::generate_doc(bool p_use_cache) {
|
||||
if (doc_gen_use_threads) {
|
||||
// In case not the first attempt.
|
||||
_wait_for_thread();
|
||||
@@ -2256,7 +2256,7 @@ void EditorHelp::generate_doc() {
|
||||
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) {
|
||||
thread.start(_load_doc_thread, nullptr);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user