mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 11:19:58 +01:00
..and also reset fading after new empty session is created.
This commit is contained in:
2
View.cpp
2
View.cpp
@@ -372,7 +372,7 @@ void MixingView::update(float dt)
|
|||||||
//
|
//
|
||||||
// Set slider to match the actual fading of the session
|
// 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
|
// reverse calculate angle from fading & move slider
|
||||||
slider_root_->rotation_.z = SIGN(slider_root_->rotation_.z) * asin(f) * 2.f;
|
slider_root_->rotation_.z = SIGN(slider_root_->rotation_.z) * asin(f) * 2.f;
|
||||||
|
|||||||
Reference in New Issue
Block a user