mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 18:59:59 +01:00
ORDER change: add sources at the end when create
Inserting sources at front was changing their index every time, which broke OSC addressing
This commit is contained in:
@@ -198,9 +198,9 @@ SourceList::iterator Session::addSource(Source *s)
|
|||||||
// insert the source in the rendering
|
// insert the source in the rendering
|
||||||
render_.scene.ws()->attach(s->group(View::RENDERING));
|
render_.scene.ws()->attach(s->group(View::RENDERING));
|
||||||
// insert the source to the beginning of the list
|
// insert the source to the beginning of the list
|
||||||
sources_.push_front(s);
|
sources_.push_back(s);
|
||||||
// return the iterator to the source created at the beginning
|
// return the iterator to the source created at the beginning
|
||||||
its = sources_.begin();
|
its = sources_.end()--;
|
||||||
}
|
}
|
||||||
|
|
||||||
// unlock access
|
// unlock access
|
||||||
|
|||||||
Reference in New Issue
Block a user