mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Add setting to exclude addons from script warnings
(cherry picked from commit d7137a6b72)
This commit is contained in:
parent
ad1e8069d3
commit
717c492eb6
2 changed files with 4 additions and 0 deletions
|
|
@ -8179,6 +8179,9 @@ void GDScriptParser::_add_warning(int p_code, int p_line, const String &p_symbol
|
|||
}
|
||||
|
||||
void GDScriptParser::_add_warning(int p_code, int p_line, const Vector<String> &p_symbols) {
|
||||
if (GLOBAL_GET("debug/gdscript/warnings/exclude_addons").booleanize() && base_path.begins_with("res://addons/")) {
|
||||
return;
|
||||
}
|
||||
if (tokenizer->is_ignoring_warnings() || !GLOBAL_GET("debug/gdscript/warnings/enable").booleanize()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue