|
@@ -137,16 +137,12 @@ GDScriptDataType GDScriptCompiler::_gdtype_from_datatype(const GDScriptParser::D
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} break;
|
|
} break;
|
|
|
|
+ case GDScriptParser::DataType::ENUM:
|
|
case GDScriptParser::DataType::ENUM_VALUE:
|
|
case GDScriptParser::DataType::ENUM_VALUE:
|
|
result.has_type = true;
|
|
result.has_type = true;
|
|
result.kind = GDScriptDataType::BUILTIN;
|
|
result.kind = GDScriptDataType::BUILTIN;
|
|
result.builtin_type = Variant::INT;
|
|
result.builtin_type = Variant::INT;
|
|
break;
|
|
break;
|
|
- case GDScriptParser::DataType::ENUM:
|
|
|
|
- result.has_type = true;
|
|
|
|
- result.kind = GDScriptDataType::BUILTIN;
|
|
|
|
- result.builtin_type = Variant::DICTIONARY;
|
|
|
|
- break;
|
|
|
|
case GDScriptParser::DataType::UNRESOLVED: {
|
|
case GDScriptParser::DataType::UNRESOLVED: {
|
|
ERR_PRINT("Parser bug: converting unresolved type.");
|
|
ERR_PRINT("Parser bug: converting unresolved type.");
|
|
return GDScriptDataType();
|
|
return GDScriptDataType();
|
|
@@ -2218,9 +2214,8 @@ Error GDScriptCompiler::_parse_class_level(GDScript *p_script, const GDScriptPar
|
|
prop_info.hint = export_info.hint;
|
|
prop_info.hint = export_info.hint;
|
|
prop_info.hint_string = export_info.hint_string;
|
|
prop_info.hint_string = export_info.hint_string;
|
|
prop_info.usage = export_info.usage;
|
|
prop_info.usage = export_info.usage;
|
|
- } else {
|
|
|
|
- prop_info.usage = PROPERTY_USAGE_SCRIPT_VARIABLE;
|
|
|
|
}
|
|
}
|
|
|
|
+ prop_info.usage |= PROPERTY_USAGE_SCRIPT_VARIABLE;
|
|
#ifdef TOOLS_ENABLED
|
|
#ifdef TOOLS_ENABLED
|
|
p_script->doc_variables[name] = variable->doc_description;
|
|
p_script->doc_variables[name] = variable->doc_description;
|
|
#endif
|
|
#endif
|