Fixed initialization of source and of SessionSource; sources are ready

after full initialization and in standly. A new button allows playing
the source (media or session) in the new source pannel.
This commit is contained in:
brunoherbelin
2020-07-19 19:03:49 +02:00
parent 71a3de644d
commit d916bb5706
11 changed files with 108 additions and 59 deletions

View File

@@ -469,7 +469,7 @@ void GeometryView::update(float dt)
{
View::update(dt);
// reorder depth if needed
// a more complete update is requested
if (View::need_deep_update_) {
// update rendering of render frame
@@ -725,7 +725,7 @@ void LayerView::update(float dt)
{
View::update(dt);
// reorder depth if needed
// a more complete update is requested
if (View::need_deep_update_) {
// update rendering of render frame
@@ -777,12 +777,12 @@ float LayerView::setDepth(Source *s, float d)
// change depth
sourceNode->translation_.z = -sourceNode->translation_.x;
// request update
s->touch();
// request reordering
// request reordering of scene at next update
View::need_deep_update_ = true;
// request update of source
s->touch();
return sourceNode->translation_.z;
}
@@ -930,8 +930,8 @@ void TransitionView::update(float dt)
// update scene
View::update(dt);
// reorder depth if needed
if (View::need_deep_update_) {
// a more complete update is requested
if (View::need_deep_update_) {
// update rendering of render frame
FrameBuffer *output = Mixer::manager().session()->frame();