mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
GDScript: Only check if ignoring warnings in debug build
This commit is contained in:
parent
f16c5b564b
commit
910d6d8e62
2 changed files with 4 additions and 1 deletions
|
@ -148,7 +148,9 @@ GDScriptParser::GDScriptParser() {
|
|||
// Networking.
|
||||
register_annotation(MethodInfo("@rpc", PropertyInfo(Variant::STRING, "mode"), PropertyInfo(Variant::STRING, "sync"), PropertyInfo(Variant::STRING, "transfer_mode"), PropertyInfo(Variant::INT, "transfer_channel")), AnnotationInfo::FUNCTION, &GDScriptParser::rpc_annotation, varray("", "", "", 0), true);
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
is_ignoring_warnings = !(bool)GLOBAL_GET("debug/gdscript/warnings/enable");
|
||||
#endif
|
||||
}
|
||||
|
||||
GDScriptParser::~GDScriptParser() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue