Fix compilation on Visual Studio 2013 (#10219).

This commit is contained in:
scorched
2017-10-19 19:41:36 +03:00
committed by Rémi Verschelde
parent eeacae563c
commit 3ba5ee42c3
21 changed files with 166 additions and 4 deletions

View File

@@ -392,7 +392,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
editor_register_and_generate_icons(theme, dark_theme, thumb_size);
}
// thumbnail size has changed, so we regenerate the medium sizes
if (p_theme != NULL && fabs(p_theme->get_constant("thumb_size", "Editor") - thumb_size) > 0.00001) {
if (p_theme != NULL && fabs((double)p_theme->get_constant("thumb_size", "Editor") - thumb_size) > 0.00001) {
editor_register_and_generate_icons(p_theme, dark_theme, thumb_size, true);
}