Fixed virtual method not showing up in autocomplete and docs

(cherry picked from commit aebca30c43)
This commit is contained in:
WiggleWizard 2019-05-23 22:31:02 +01:00 committed by Rémi Verschelde
parent 7431d3c3c0
commit 4444bd1fcb
2 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,12 @@
<description> <description>
</description> </description>
</method> </method>
<method name="_export_end" qualifiers="virtual">
<return type="void">
</return>
<description>
</description>
</method>
<method name="_export_file" qualifiers="virtual"> <method name="_export_file" qualifiers="virtual">
<return type="void"> <return type="void">
</return> </return>

View File

@ -611,6 +611,7 @@ void EditorExportPlugin::_bind_methods() {
BIND_VMETHOD(MethodInfo("_export_file", PropertyInfo(Variant::STRING, "path"), PropertyInfo(Variant::STRING, "type"), PropertyInfo(Variant::POOL_STRING_ARRAY, "features"))); BIND_VMETHOD(MethodInfo("_export_file", PropertyInfo(Variant::STRING, "path"), PropertyInfo(Variant::STRING, "type"), PropertyInfo(Variant::POOL_STRING_ARRAY, "features")));
BIND_VMETHOD(MethodInfo("_export_begin", PropertyInfo(Variant::POOL_STRING_ARRAY, "features"), PropertyInfo(Variant::BOOL, "is_debug"), PropertyInfo(Variant::STRING, "path"), PropertyInfo(Variant::INT, "flags"))); BIND_VMETHOD(MethodInfo("_export_begin", PropertyInfo(Variant::POOL_STRING_ARRAY, "features"), PropertyInfo(Variant::BOOL, "is_debug"), PropertyInfo(Variant::STRING, "path"), PropertyInfo(Variant::INT, "flags")));
BIND_VMETHOD(MethodInfo("_export_end"));
} }
EditorExportPlugin::EditorExportPlugin() { EditorExportPlugin::EditorExportPlugin() {