GDScript: Remove RENAMED_IN_GODOT_4_HINT from GDScriptWarning::Code enum

This commit is contained in:
Danil Alexeev 2025-01-09 21:07:41 +03:00
parent 0e3a5eda86
commit cd918ff470
No known key found for this signature in database
GPG key ID: 5A52F75A8679EC57
8 changed files with 16 additions and 18 deletions

View file

@ -196,7 +196,7 @@ void GDScriptParser::push_warning(const Node *p_source, GDScriptWarning::Code p_
if (is_ignoring_warnings) {
return;
}
if (GLOBAL_GET("debug/gdscript/warnings/exclude_addons").booleanize() && script_path.begins_with("res://addons/")) {
if (GLOBAL_GET("debug/gdscript/warnings/exclude_addons") && script_path.begins_with("res://addons/")) {
return;
}
GDScriptWarning::WarnLevel warn_level = (GDScriptWarning::WarnLevel)(int)GLOBAL_GET(GDScriptWarning::get_settings_path_from_code(p_code));