From e5a71e3f95ed739a92479f93fe481cf97ca11e58 Mon Sep 17 00:00:00 2001 From: Daniel J. Ramirez Date: Sun, 27 Aug 2017 21:50:46 -0500 Subject: Added missing gizmo icons and fixed ugly looking gizmo icons. --- editor/editor_themes.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'editor/editor_themes.cpp') 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 editor_generate_icon(int p_index, bool dark_theme = true) { Ref icon = memnew(ImageTexture); Ref 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); -- cgit v1.2.3-70-g09d2