From 9215be6bfc69902d80bb6ed058b190df9b38f51d Mon Sep 17 00:00:00 2001 From: brunoherbelin Date: Sat, 30 Jan 2021 22:43:22 +0100 Subject: [PATCH] ..and also reset fading after new empty session is created. --- View.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/View.cpp b/View.cpp index 9354fbd..883dedc 100644 --- a/View.cpp +++ b/View.cpp @@ -372,7 +372,7 @@ void MixingView::update(float dt) // // Set slider to match the actual fading of the session // - float f = Mixer::manager().session()->fading(); + float f = Mixer::manager().session()->empty() ? 0.f : Mixer::manager().session()->fading(); // reverse calculate angle from fading & move slider slider_root_->rotation_.z = SIGN(slider_root_->rotation_.z) * asin(f) * 2.f;