plist.add (ARDOUR::Properties::layer, 0);
boost::shared_ptr<Region> nr = RegionFactory::create (r->sources(), plist, false);
+ /* because we set annouce to false, manually add the new region to the
+ RegionFactory map
+ */
+ RegionFactory::map_add (nr);
pl->add_region (nr, r->position() + pos);
plist.add (ARDOUR::Properties::layer, 0);
boost::shared_ptr<Region> nr = RegionFactory::create (r->sources(), plist, false);
+ /* because we set annouce to false, manually add the new region to the
+ RegionFactory map
+ */
+ RegionFactory::map_add (nr);
pl->add_region (nr, r->position() + pos);
if (select_new) {
static void add_compound_association (boost::shared_ptr<Region>, boost::shared_ptr<Region>);
+ /* exposed because there may be cases where regions are created with
+ * announce=false but they still need to be in the map soon after
+ * creation.
+ */
+
+ static void map_add (boost::shared_ptr<Region>);
+
private:
static void region_changed (PBD::PropertyChange const &, boost::weak_ptr<Region>);
static Glib::StaticMutex region_map_lock;
static RegionMap region_map;
- static void map_add (boost::shared_ptr<Region>);
static Glib::StaticMutex region_name_map_lock;