Bugfix and cleanup Group source insert

NB: default setAlpha now re-uses the source previous mixing coordinates (does not force default location)
This commit is contained in:
Bruno Herbelin
2022-03-27 15:30:56 +02:00
parent 0f3e856438
commit c6097e0397
3 changed files with 10 additions and 15 deletions

View File

@@ -688,9 +688,9 @@ void MixingView::setAlpha(Source *s)
if (!s)
return;
// move the layer node of the source
// move the mixing node of the source
Group *sourceNode = s->group(mode_);
glm::vec2 mix_pos = glm::vec2(DEFAULT_MIXING_TRANSLATION);
glm::vec2 mix_pos(sourceNode->translation_);
for(NodeSet::iterator it = scene.ws()->begin(); it != scene.ws()->end(); ++it) {
// avoid superposing icons: distribute equally