|
@@ -2408,6 +2408,7 @@ void GDParser::_parse_class(ClassNode *p_class) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
current_export.type=type;
|
|
current_export.type=type;
|
|
|
|
+ current_export.usage|=PROPERTY_USAGE_SCRIPT_VARIABLE;
|
|
tokenizer->advance();
|
|
tokenizer->advance();
|
|
if (tokenizer->get_token()==GDTokenizer::TK_COMMA) {
|
|
if (tokenizer->get_token()==GDTokenizer::TK_COMMA) {
|
|
// hint expected next!
|
|
// hint expected next!
|
|
@@ -2782,6 +2783,8 @@ 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.usage|=PROPERTY_USAGE_SCRIPT_VARIABLE;
|
|
|
|
+
|
|
current_export.hint_string=identifier;
|
|
current_export.hint_string=identifier;
|
|
|
|
|
|
tokenizer->advance();
|
|
tokenizer->advance();
|
|
@@ -2901,6 +2904,7 @@ void GDParser::_parse_class(ClassNode *p_class) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
member._export.type=cn->value.get_type();
|
|
member._export.type=cn->value.get_type();
|
|
|
|
+ member._export.usage|=PROPERTY_USAGE_SCRIPT_VARIABLE;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#ifdef TOOLS_ENABLED
|
|
#ifdef TOOLS_ENABLED
|