diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-12 13:39:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 13:39:34 +0100 |
commit | 26bb08f8b3b009f17645558309f4c5c02733e4c2 (patch) | |
tree | 96edeac5bfdc699192155df89271d7b055e95ec8 /editor/plugins/animation_tree_editor_plugin.cpp | |
parent | ccf6f33813765d1e75e34313baecd805d1ad716e (diff) | |
parent | 65e2230f6e75df07441eda3038066f901ff143d9 (diff) |
Merge pull request #35037 from timothyqiu/plugin-min-height
Fixes min size of various editor plugins on HiDPI
Diffstat (limited to 'editor/plugins/animation_tree_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/animation_tree_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index a0b58b8f7e..8dc7e4638d 100644 --- a/editor/plugins/animation_tree_editor_plugin.cpp +++ b/editor/plugins/animation_tree_editor_plugin.cpp @@ -39,6 +39,7 @@ #include "core/os/input.h" #include "core/os/keyboard.h" #include "core/project_settings.h" +#include "editor/editor_scale.h" #include "scene/animation/animation_blend_tree.h" #include "scene/animation/animation_player.h" #include "scene/gui/menu_button.h" @@ -284,7 +285,7 @@ AnimationTreeEditorPlugin::AnimationTreeEditorPlugin(EditorNode *p_node) { editor = p_node; anim_tree_editor = memnew(AnimationTreeEditor); - anim_tree_editor->set_custom_minimum_size(Size2(0, 300)); + anim_tree_editor->set_custom_minimum_size(Size2(0, 300) * EDSCALE); button = editor->add_bottom_panel_item(TTR("AnimationTree"), anim_tree_editor); button->hide(); |