You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fix "Treat Warnings as Errors" Project Setting not working
This commit is contained in:
@@ -230,7 +230,7 @@ void GDScriptParser::push_warning(const Node *p_source, GDScriptWarning::Code p_
|
|||||||
warning.leftmost_column = p_source->leftmost_column;
|
warning.leftmost_column = p_source->leftmost_column;
|
||||||
warning.rightmost_column = p_source->rightmost_column;
|
warning.rightmost_column = p_source->rightmost_column;
|
||||||
|
|
||||||
if (warn_level == GDScriptWarning::WarnLevel::ERROR) {
|
if (warn_level == GDScriptWarning::WarnLevel::ERROR || bool(GLOBAL_GET("debug/gdscript/warnings/treat_warnings_as_errors"))) {
|
||||||
push_error(warning.get_message(), p_source);
|
push_error(warning.get_message(), p_source);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user