Skip to content

Commit 702bbb3

Browse files
committed
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.
1 parent e67074d commit 702bbb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/classes/EditorExportPlatform.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
</method>
122122
<method name="get_forced_export_files" qualifiers="static">
123123
<return type="PackedStringArray" />
124-
<param index="0" name="preset" type="EditorExportPreset" />
124+
<param index="0" name="preset" type="EditorExportPreset" default="null" />
125125
<description>
126126
Returns array of core file names that always should be exported regardless of preset config.
127127
</description>

editor/export/editor_export_platform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2530,7 +2530,7 @@ void EditorExportPlatform::_bind_methods() {
25302530

25312531
ClassDB::bind_method(D_METHOD("get_internal_export_files", "preset", "debug"), &EditorExportPlatform::get_internal_export_files);
25322532

2533-
ClassDB::bind_static_method("EditorExportPlatform", D_METHOD("get_forced_export_files", "preset"), &EditorExportPlatform::get_forced_export_files);
2533+
ClassDB::bind_static_method("EditorExportPlatform", D_METHOD("get_forced_export_files", "preset"), &EditorExportPlatform::get_forced_export_files, DEFVAL(Ref<EditorExportPreset>()));
25342534

25352535
BIND_ENUM_CONSTANT(EXPORT_MESSAGE_NONE);
25362536
BIND_ENUM_CONSTANT(EXPORT_MESSAGE_INFO);

0 commit comments

Comments
 (0)