diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-09 10:36:24 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-09 10:37:35 +0200 |
commit | 5062b4a26b70701cf3f687d726ac78634b20d6d8 (patch) | |
tree | 739cf0f71353ad46c6a8fdb9666fc94fa779b5e3 | |
parent | 3474e1586d765f77fec8b2658eb1b02d8813a838 (diff) |
Fix condition in editor icons filtering logic
Fixes #27595.
-rw-r--r-- | editor/editor_themes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 335e3fcd29..0869f6ce77 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -204,7 +204,7 @@ void editor_register_and_generate_icons(Ref<Theme> p_theme, bool p_dark_theme = } // generate thumb files with the given thumb size - bool force_filter = !(p_thumb_size == 64 && p_thumb_size == 32); // we don't need filter with original resolution + bool force_filter = p_thumb_size != 64 && p_thumb_size != 32; // we don't need filter with original resolution if (p_thumb_size >= 64) { float scale = (float)p_thumb_size / 64.0 * EDSCALE; for (int i = 0; i < editor_bg_thumbs_count; i++) { |