diff options
| author | Daniel J. Ramirez | 2017-08-27 21:50:46 -0500 |
|---|---|---|
| committer | Daniel J. Ramirez | 2017-08-28 15:49:16 -0500 |
| commit | e5a71e3f95ed739a92479f93fe481cf97ca11e58 (patch) | |
| tree | 848927fb003e11232ae306cc66e8594e77042721 /editor/editor_themes.cpp | |
| parent | 9a0ace41b07090b73fbebd9f40b769710159e1cc (diff) | |
| download | godot-e5a71e3f95ed739a92479f93fe481cf97ca11e58.tar.gz godot-e5a71e3f95ed739a92479f93fe481cf97ca11e58.tar.zst godot-e5a71e3f95ed739a92479f93fe481cf97ca11e58.zip | |
Added missing gizmo icons and fixed ugly looking gizmo icons.
Diffstat (limited to 'editor/editor_themes.cpp')
| -rw-r--r-- | editor/editor_themes.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index a52770156..aa2b8913d 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -93,8 +93,11 @@ Ref<ImageTexture> editor_generate_icon(int p_index, bool dark_theme = true) { Ref<ImageTexture> icon = memnew(ImageTexture); Ref<Image> img = memnew(Image); + // dumb gizmo check + bool is_gizmo = String(editor_icons_names[p_index]).begins_with("Gizmo"); + ImageLoaderSVG::create_image_from_string(img, dark_theme ? editor_icons_sources[p_index] : editor_icons_sources_dark[p_index], EDSCALE, true); - if ((EDSCALE - (float)((int)EDSCALE)) > 0.0) + if ((EDSCALE - (float)((int)EDSCALE)) > 0.0 || is_gizmo) icon->create_from_image(img); // in this case filter really helps else icon->create_from_image(img, 0); |
