diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2018-08-24 13:54:52 +0700 |
---|---|---|
committer | Poommetee Ketson <poommetee@protonmail.com> | 2018-08-24 20:46:04 +0700 |
commit | cee6d5620aa05d8b613479f8e6f098ed5bdae288 (patch) | |
tree | 7563152067bc91a4ed1ec071ff972bc6cd46ecef /modules | |
parent | 34e58fd831172bad1eebb748c97238c28864423a (diff) |
Deprecating bit flags export with no hint text
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 2c0d541d8f..8dfc97b492 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -3918,14 +3918,15 @@ void GDScriptParser::_parse_class(ClassNode *p_class) { if (tokenizer->get_token() == GDScriptTokenizer::TK_IDENTIFIER && tokenizer->get_token_identifier() == "FLAGS") { - //current_export.hint=PROPERTY_HINT_ALL_FLAGS; tokenizer->advance(); if (tokenizer->get_token() == GDScriptTokenizer::TK_PARENTHESIS_CLOSE) { + ERR_EXPLAIN("Exporting bit flags hint requires string constants."); + WARN_DEPRECATED break; } if (tokenizer->get_token() != GDScriptTokenizer::TK_COMMA) { - _set_error("Expected ')' or ',' in bit flags hint."); + _set_error("Expected ',' in bit flags hint."); return; } |