1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #108658 from bruvzg/ed_pl_init

[EditorExportPlatform] Move initialization to a dedicated method.
This commit is contained in:
Thaddeus Crews
2025-09-30 18:35:25 -05:00
21 changed files with 56 additions and 31 deletions

View File

@@ -2814,7 +2814,7 @@ Error EditorExportPlatformMacOS::run(const Ref<EditorExportPreset> &p_preset, in
#undef CLEANUP_AND_RETURN
}
EditorExportPlatformMacOS::EditorExportPlatformMacOS() {
void EditorExportPlatformMacOS::initialize() {
if (EditorNode::get_singleton()) {
Ref<Image> img = memnew(Image);
const bool upsample = !Math::is_equal_approx(Math::round(EDSCALE), EDSCALE);

View File

@@ -170,5 +170,5 @@ public:
virtual Error run(const Ref<EditorExportPreset> &p_preset, int p_device, BitField<EditorExportPlatform::DebugFlags> p_debug_flags) override;
virtual void cleanup() override;
EditorExportPlatformMacOS();
virtual void initialize() override;
};