diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-09-30 13:36:49 -0300 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-09-30 13:36:49 -0300 |
commit | 4689ece7415be4a598e5a881d64b1201bf8ce0e0 (patch) | |
tree | 4df387d7acb2655f5ce3ca56c6de349b091f838d /editor/scene_tree_editor.cpp | |
parent | 680bcb1ef45c67da1b58ff3be84ca5e4fd1e40cf (diff) |
Minor visual adjustment in drag preview of the scene and file tree editors
Diffstat (limited to 'editor/scene_tree_editor.cpp')
-rw-r--r-- | editor/scene_tree_editor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index f1fc4eb950..dc5eb4bbd0 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -959,6 +959,7 @@ Variant SceneTreeEditor::get_drag_data_fw(const Point2 &p_point, Control *p_from HBoxContainer *hb = memnew(HBoxContainer); TextureRect *tf = memnew(TextureRect); tf->set_texture(icons[i]); + tf->set_stretch_mode(TextureRect::STRETCH_KEEP_CENTERED); hb->add_child(tf); Label *label = memnew(Label(selected[i]->get_name())); hb->add_child(label); |