Fixed source picking problems

Allow unlock of source in geometry, do not allow selection of locked
source with CTRL
This commit is contained in:
brunoherbelin
2021-03-17 21:56:35 +01:00
parent b8fe0d7c69
commit cd4d8f02cb
3 changed files with 52 additions and 53 deletions

View File

@@ -345,8 +345,8 @@ std::pair<Node *, glm::vec2> MixingView::pick(glm::vec2 P)
s->setLocked(true);
pick = { nullptr, glm::vec2(0.f) };
}
// pick a locked source without CTRL key; cancel pick
else if ( s->locked() && !UserInterface::manager().ctrlModifier() ) {
// pick a locked source ; cancel pick
else if ( s->locked() ) {
pick = { nullptr, glm::vec2(0.f) };
}
// pick on the mixing group rotation icon