Revert "add flag and multiline hits in GDScript"

This reverts commit 7843ec6633.
This commit is contained in:
eska 2015-10-16 16:18:46 +02:00
parent aad2bbdb6f
commit e18c1ba05b

View file

@ -2607,13 +2607,6 @@ void GDParser::_parse_class(ClassNode *p_class) {
} else if (tokenizer->get_token()==GDTokenizer::TK_IDENTIFIER) { } else if (tokenizer->get_token()==GDTokenizer::TK_IDENTIFIER) {
String identifier = tokenizer->get_token_identifier(); String identifier = tokenizer->get_token_identifier();
if (identifier == "flag") {
current_export.type=Variant::INT;
current_export.hint=PROPERTY_HINT_ALL_FLAGS;
}else if (identifier == "multiline"){
current_export.type=Variant::STRING;
current_export.hint=PROPERTY_HINT_MULTILINE_TEXT;
} else {
if (!ObjectTypeDB::is_type(identifier,"Resource")) { if (!ObjectTypeDB::is_type(identifier,"Resource")) {
current_export=PropertyInfo(); current_export=PropertyInfo();
@ -2623,7 +2616,7 @@ void GDParser::_parse_class(ClassNode *p_class) {
current_export.type=Variant::OBJECT; current_export.type=Variant::OBJECT;
current_export.hint=PROPERTY_HINT_RESOURCE_TYPE; current_export.hint=PROPERTY_HINT_RESOURCE_TYPE;
current_export.hint_string=identifier; current_export.hint_string=identifier;
}
tokenizer->advance(); tokenizer->advance();
} }