You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Don't update script documentation when exporting
This commit is contained in:
@@ -3104,6 +3104,10 @@ void EditorHelp::load_script_doc_cache() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (EditorNode::is_cmdline_mode()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_wait_for_thread();
|
_wait_for_thread();
|
||||||
|
|
||||||
if (!ResourceLoader::exists(get_script_doc_cache_full_path())) {
|
if (!ResourceLoader::exists(get_script_doc_cache_full_path())) {
|
||||||
|
|||||||
@@ -6007,6 +6007,11 @@ bool EditorNode::immediate_confirmation_dialog(const String &p_text, const Strin
|
|||||||
return singleton->immediate_dialog_confirmed;
|
return singleton->immediate_dialog_confirmed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool EditorNode::is_cmdline_mode() {
|
||||||
|
ERR_FAIL_NULL_V(singleton, false);
|
||||||
|
return singleton->cmdline_mode;
|
||||||
|
}
|
||||||
|
|
||||||
void EditorNode::cleanup() {
|
void EditorNode::cleanup() {
|
||||||
_init_callbacks.clear();
|
_init_callbacks.clear();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -771,6 +771,7 @@ public:
|
|||||||
|
|
||||||
static bool immediate_confirmation_dialog(const String &p_text, const String &p_ok_text = TTR("Ok"), const String &p_cancel_text = TTR("Cancel"), uint32_t p_wrap_width = 0);
|
static bool immediate_confirmation_dialog(const String &p_text, const String &p_ok_text = TTR("Ok"), const String &p_cancel_text = TTR("Cancel"), uint32_t p_wrap_width = 0);
|
||||||
|
|
||||||
|
static bool is_cmdline_mode();
|
||||||
static void cleanup();
|
static void cleanup();
|
||||||
|
|
||||||
EditorPluginList *get_editor_plugins_force_input_forwarding() { return editor_plugins_force_input_forwarding; }
|
EditorPluginList *get_editor_plugins_force_input_forwarding() { return editor_plugins_force_input_forwarding; }
|
||||||
|
|||||||
@@ -2285,9 +2285,11 @@ void EditorFileSystem::_process_update_pending() {
|
|||||||
_update_script_classes();
|
_update_script_classes();
|
||||||
// Parse documentation second, as it requires the class names to be loaded
|
// Parse documentation second, as it requires the class names to be loaded
|
||||||
// because _update_script_documentation loads the scripts completely.
|
// because _update_script_documentation loads the scripts completely.
|
||||||
|
if (!EditorNode::is_cmdline_mode()) {
|
||||||
_update_script_documentation();
|
_update_script_documentation();
|
||||||
_update_pending_scene_groups();
|
_update_pending_scene_groups();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void EditorFileSystem::_queue_update_script_class(const String &p_path, const ScriptClassInfoUpdate &p_script_update) {
|
void EditorFileSystem::_queue_update_script_class(const String &p_path, const ScriptClassInfoUpdate &p_script_update) {
|
||||||
MutexLock update_script_lock(update_script_mutex);
|
MutexLock update_script_lock(update_script_mutex);
|
||||||
|
|||||||
Reference in New Issue
Block a user