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:
Bruno Herbelin
2022-01-02 11:41:47 +01:00
parent 4426f70de7
commit 8cb37dba36

View File

@@ -198,9 +198,9 @@ SourceList::iterator Session::addSource(Source *s)
// insert the source in the rendering
render_.scene.ws()->attach(s->group(View::RENDERING));
// 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
its = sources_.begin();
its = sources_.end()--;
}
// unlock access