diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-08-27 17:47:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-27 17:47:21 +0200 |
commit | 5b87864385fb702cf759df588120421bf0bacd68 (patch) | |
tree | 9b2c90ccdbef1be5c092fe0cdfd0d80efb22646e | |
parent | 573d03d88816252b374bc32205c46a4b5a7bb23e (diff) | |
parent | cee6d5620aa05d8b613479f8e6f098ed5bdae288 (diff) |
Merge pull request #21369 from Noshyaar/exportflag
Deprecating bit flags export with no hint text
-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 a3f5e1819e..930f99fbf7 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -3915,14 +3915,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; } |