From 24aacdda6bd4f2f8cb5203d21d28eda04ffea2f8 Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Sun, 25 Aug 2024 02:46:32 -0400 Subject: [PATCH] GH-778 Fix crash on Windows 10 - Revert GH-653 --- src/editor/plugins/orchestrator_editor_plugin.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/editor/plugins/orchestrator_editor_plugin.cpp b/src/editor/plugins/orchestrator_editor_plugin.cpp index 941247b3..3e55ab37 100644 --- a/src/editor/plugins/orchestrator_editor_plugin.cpp +++ b/src/editor/plugins/orchestrator_editor_plugin.cpp @@ -31,8 +31,6 @@ #include #include #include -#include -#include #include #include #include @@ -155,18 +153,7 @@ String OrchestratorPlugin::_get_plugin_name() const Ref OrchestratorPlugin::_get_plugin_icon() const { - Ref icon = ResourceLoader::get_singleton()->load(OScriptLanguage::ICON); - - const double scale = EditorInterface::get_singleton()->get_editor_scale(); - if (UtilityFunctions::is_equal_approx(1.0, scale)) - return icon; - - // Godot automatically scales icons that are part of the Editor pack but does not do - // that with custom icons, we must do this when the display size changes. - const Ref image = icon->get_image(); - image->resize(static_cast(image->get_width() * scale), static_cast(image->get_height() * scale)); - - return ImageTexture::create_from_image(image); + return ResourceLoader::get_singleton()->load(OScriptLanguage::ICON); } String OrchestratorPlugin::get_plugin_online_documentation_url() const