From 702bbb3eabd03d6a9ee121440c629b5b3a19f81c Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Sat, 16 Aug 2025 03:23:30 +0200 Subject: [PATCH] Add default param value to `EditorExportPlatform::get_forced_export_files` Add default parameter value to a new parameter added in 4.5 to `EditorExportPlatform::get_forced_export_files` so we can avoid breaking compatibility for GDScript. --- doc/classes/EditorExportPlatform.xml | 2 +- editor/export/editor_export_platform.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/EditorExportPlatform.xml b/doc/classes/EditorExportPlatform.xml index d85d9cd280..cb4633e0a4 100644 --- a/doc/classes/EditorExportPlatform.xml +++ b/doc/classes/EditorExportPlatform.xml @@ -121,7 +121,7 @@ - + Returns array of core file names that always should be exported regardless of preset config. diff --git a/editor/export/editor_export_platform.cpp b/editor/export/editor_export_platform.cpp index a3842e51be..769c4a99d8 100644 --- a/editor/export/editor_export_platform.cpp +++ b/editor/export/editor_export_platform.cpp @@ -2530,7 +2530,7 @@ void EditorExportPlatform::_bind_methods() { ClassDB::bind_method(D_METHOD("get_internal_export_files", "preset", "debug"), &EditorExportPlatform::get_internal_export_files); - ClassDB::bind_static_method("EditorExportPlatform", D_METHOD("get_forced_export_files", "preset"), &EditorExportPlatform::get_forced_export_files); + ClassDB::bind_static_method("EditorExportPlatform", D_METHOD("get_forced_export_files", "preset"), &EditorExportPlatform::get_forced_export_files, DEFVAL(Ref())); BIND_ENUM_CONSTANT(EXPORT_MESSAGE_NONE); BIND_ENUM_CONSTANT(EXPORT_MESSAGE_INFO);