..and also reset fading after new empty session is created.

This commit is contained in:
brunoherbelin
2021-01-30 22:43:22 +01:00
parent 691c6d174b
commit 9215be6bfc

View File

@@ -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;