diff options
author | kobewi <kobewi4e@gmail.com> | 2022-10-18 18:47:44 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-10-19 00:05:48 +0200 |
commit | d06a8320e5d5117f8a057da16d33443f410a5d9f (patch) | |
tree | 895f507322e9b4371c6fd7141e2c6d3d3c67278a /editor/export | |
parent | 4a96fce801cae2d3e0fe42005c74ca7d60cc1582 (diff) |
Simplify GDVIRTUAL_CALL calls
Diffstat (limited to 'editor/export')
-rw-r--r-- | editor/export/editor_export_plugin.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/editor/export/editor_export_plugin.cpp b/editor/export/editor_export_plugin.cpp index 971ea579cc..78d4f93dfe 100644 --- a/editor/export/editor_export_plugin.cpp +++ b/editor/export/editor_export_plugin.cpp @@ -142,10 +142,8 @@ void EditorExportPlugin::_export_end_script() { bool EditorExportPlugin::_begin_customize_resources(const Ref<EditorExportPlatform> &p_platform, const Vector<String> &p_features) const { bool ret = false; - if (GDVIRTUAL_CALL(_begin_customize_resources, p_platform, p_features, ret)) { - return ret; - } - return false; + GDVIRTUAL_CALL(_begin_customize_resources, p_platform, p_features, ret); + return ret; } Ref<Resource> EditorExportPlugin::_customize_resource(const Ref<Resource> &p_resource, const String &p_path) { @@ -158,10 +156,8 @@ Ref<Resource> EditorExportPlugin::_customize_resource(const Ref<Resource> &p_res bool EditorExportPlugin::_begin_customize_scenes(const Ref<EditorExportPlatform> &p_platform, const Vector<String> &p_features) const { bool ret = false; - if (GDVIRTUAL_CALL(_begin_customize_scenes, p_platform, p_features, ret)) { - return ret; - } - return false; + GDVIRTUAL_CALL(_begin_customize_scenes, p_platform, p_features, ret); + return ret; } Node *EditorExportPlugin::_customize_scene(Node *p_root, const String &p_path) { |