summaryrefslogtreecommitdiff
path: root/editor/editor_themes.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-09 16:24:30 +0200
committerGitHub <noreply@github.com>2019-04-09 16:24:30 +0200
commitbde77dc0b4661741b58e88861476d99d41296ff5 (patch)
tree0ecf39be3e6a53920a8d8f27c3388c1361828056 /editor/editor_themes.cpp
parent003e977cd54d825c7217af1360287b462e29f8c1 (diff)
parent5062b4a26b70701cf3f687d726ac78634b20d6d8 (diff)
Merge pull request #27838 from akien-mga/Wlogical-op
Fix condition in editor icons filtering logic
Diffstat (limited to 'editor/editor_themes.cpp')
-rw-r--r--editor/editor_themes.cpp2
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++) {