diff options
author | Yuri Sizov <yuris@humnom.net> | 2021-01-25 17:37:05 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2021-01-25 21:49:07 +0300 |
commit | 9d9d0f0bc995a4db9ee1e823380076bf2aca70d8 (patch) | |
tree | 596a39602641ab25bf77583473c0fcceba5b10d3 /scene/resources/default_theme | |
parent | 71f0b4f4b94f39631128f426950f0a7703087b03 (diff) |
Fix minimap capturing events and improve its theme
Add an editor setting for minimap opacity in visual editors
Diffstat (limited to 'scene/resources/default_theme')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 982239fe4e..5878467aaa 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -115,6 +115,7 @@ static Ref<Texture2D> flip_icon(Ref<Texture2D> p_texture, bool p_flip_y = false, Ref<ImageTexture> texture(memnew(ImageTexture)); Ref<Image> img = p_texture->get_data(); + img = img->duplicate(); if (p_flip_y) { img->flip_y(); |