From 8cb37dba36f94355ee7aa2c620d7e6cb3c293b82 Mon Sep 17 00:00:00 2001 From: Bruno Herbelin Date: Sun, 2 Jan 2022 11:41:47 +0100 Subject: [PATCH] ORDER change: add sources at the end when create Inserting sources at front was changing their index every time, which broke OSC addressing --- Session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Session.cpp b/Session.cpp index 31a2fbf..d93376e 100644 --- a/Session.cpp +++ b/Session.cpp @@ -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