Place clone at same depth of origin

TODO: shift other sources to make room?
This commit is contained in:
Bruno Herbelin
2022-05-11 21:27:10 +02:00
parent 6012ad9b1e
commit d628a513d9

View File

@@ -414,6 +414,7 @@ Source * Mixer::createSourceClone(const std::string &namesource)
s = (*origin)->clone();
// place clone next to origin
s->group(View::MIXING)->translation_ = (*origin)->group(View::MIXING)->translation_;
s->group(View::LAYER)->translation_ = (*origin)->group(View::LAYER)->translation_ + LAYER_STEP;
}
return s;