mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 12:14:44 +00:00
Merge pull request #57591 from vnen/gdscript-enum-fixes
This commit is contained in:
commit
89eb6d372d
34 changed files with 352 additions and 57 deletions
|
|
@ -610,7 +610,7 @@ static String _make_arguments_hint(const GDScriptParser::FunctionNode *p_functio
|
|||
case GDScriptParser::Node::SUBSCRIPT: {
|
||||
const GDScriptParser::SubscriptNode *sub = static_cast<const GDScriptParser::SubscriptNode *>(par->default_value);
|
||||
if (sub->is_constant) {
|
||||
if (sub->datatype.kind == GDScriptParser::DataType::ENUM_VALUE) {
|
||||
if (sub->datatype.kind == GDScriptParser::DataType::ENUM) {
|
||||
def_val = sub->get_datatype().to_string();
|
||||
} else if (sub->reduced) {
|
||||
const Variant::Type vt = sub->reduced_value.get_type();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue