mirror of
https://github.com/godotengine/godot
synced 2024-09-15 23:06:15 +00:00
Add GDScript export hint for real numbers with easing export(float, EASE)
This commit is contained in:
parent
57b2c4b0c6
commit
eb9621624f
|
@ -2421,6 +2421,16 @@ void GDParser::_parse_class(ClassNode *p_class) {
|
|||
}; //fallthrough to use the same
|
||||
case Variant::REAL: {
|
||||
|
||||
if (tokenizer->get_token()==GDTokenizer::TK_IDENTIFIER && tokenizer->get_token_identifier()=="EASE") {
|
||||
current_export.hint=PROPERTY_HINT_EXP_EASING;
|
||||
tokenizer->advance();
|
||||
if (tokenizer->get_token()!=GDTokenizer::TK_PARENTHESIS_CLOSE) {
|
||||
_set_error("Expected ')' in hint.");
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
float sign=1.0;
|
||||
|
||||
if (tokenizer->get_token()==GDTokenizer::TK_OP_SUB) {
|
||||
|
|
Loading…
Reference in a new issue