summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editor/editor_toaster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_toaster.cpp b/editor/editor_toaster.cpp
index 73b645f351..10c3e963af 100644
--- a/editor/editor_toaster.cpp
+++ b/editor/editor_toaster.cpp
@@ -90,10 +90,10 @@ void EditorToaster::_notification(int p_what) {
}
// Hide element if it is not visible anymore.
- if (modulate_fade.a <= 0 && element.key->is_visible()) {
+ if (modulate_fade.a <= 0.0 && element.key->is_visible()) {
element.key->hide();
needs_update = true;
- } else if (modulate_fade.a >= 0 && !element.key->is_visible()) {
+ } else if (modulate_fade.a > 0.0 && !element.key->is_visible()) {
element.key->show();
needs_update = true;
}