mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Mark GDScript and shader warnings for translation
This commit is contained in:
@@ -2964,6 +2964,12 @@ GDScriptLanguage::GDScriptLanguage() {
|
||||
String path = GDScriptWarning::get_settings_path_from_code(code);
|
||||
GLOBAL_DEF(GDScriptWarning::get_property_info(code), default_enabled);
|
||||
}
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
ProjectSettings::get_singleton()->set_as_internal("debug/gdscript/warnings/property_used_as_function", true);
|
||||
ProjectSettings::get_singleton()->set_as_internal("debug/gdscript/warnings/constant_used_as_function", true);
|
||||
ProjectSettings::get_singleton()->set_as_internal("debug/gdscript/warnings/function_used_as_property", true);
|
||||
#endif
|
||||
#endif // DEBUG_ENABLED
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user