diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-01 23:40:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-01 23:40:11 +0200 |
commit | 737c90963f99c66d75d4372f02adaa6d82779644 (patch) | |
tree | f1ca5d1b30756bce760a0b9c3db8cc35956772d0 /editor | |
parent | e60408b0e9463bbab904cae3c333eb87d19e8c6f (diff) | |
parent | f92b87e5f8025e8ac7de1eaaf8fafbaf10521e7b (diff) |
Merge pull request #21636 from akien-mga/docdata-variant
DocData: Fix return type listed as "var" instead of "Variant"
Diffstat (limited to 'editor')
-rw-r--r-- | editor/doc/doc_data.cpp | 4 | ||||
-rw-r--r-- | editor/doc/doc_dump.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index bbe52bdc76..c90b2b14b3 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -505,7 +505,7 @@ void DocData::generate(bool p_basic_types) { ad.name = arginfo.name; if (arginfo.type == Variant::NIL) - ad.type = "var"; + ad.type = "Variant"; else ad.type = Variant::get_type_name(arginfo.type); @@ -518,7 +518,7 @@ void DocData::generate(bool p_basic_types) { if (mi.return_val.type == Variant::NIL) { if (mi.return_val.name != "") - method.return_type = "var"; + method.return_type = "Variant"; } else { method.return_type = Variant::get_type_name(mi.return_val.type); } diff --git a/editor/doc/doc_dump.cpp b/editor/doc/doc_dump.cpp index adbe23dcd5..06d35c4d3a 100644 --- a/editor/doc/doc_dump.cpp +++ b/editor/doc/doc_dump.cpp @@ -142,7 +142,7 @@ void DocDump::dump(const String &p_file) { if (arginfo.hint == PROPERTY_HINT_RESOURCE_TYPE) type_name = arginfo.hint_string; else if (arginfo.type == Variant::NIL) - type_name = "var"; + type_name = "Variant"; else type_name = Variant::get_type_name(arginfo.type); |