You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fixes min size of various editor plugins on HiDPI
* AnimationTree * AudioStream * ResourcePreloader * ShaderEditor * VisualShaderEditor
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "core/os/keyboard.h"
|
||||
#include "core/os/os.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/property_editor.h"
|
||||
#include "servers/visual/shader_types.h"
|
||||
@@ -756,7 +757,7 @@ ShaderEditorPlugin::ShaderEditorPlugin(EditorNode *p_node) {
|
||||
editor = p_node;
|
||||
shader_editor = memnew(ShaderEditor(p_node));
|
||||
|
||||
shader_editor->set_custom_minimum_size(Size2(0, 300));
|
||||
shader_editor->set_custom_minimum_size(Size2(0, 300) * EDSCALE);
|
||||
button = editor->add_bottom_panel_item(TTR("Shader"), shader_editor);
|
||||
button->hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user