mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Lock behavior change: do not show lock icon on unlocked inactive sources
Show unlocked icon only when active, show locked icon always
This commit is contained in:
@@ -449,7 +449,8 @@ std::pair<Node *, glm::vec2> GeometryView::pick(glm::vec2 P)
|
||||
// pick on the lock icon; unlock source
|
||||
else if ( UserInterface::manager().ctrlModifier() && pick.first == current->lock_ ) {
|
||||
lock(current, false);
|
||||
pick = { nullptr, glm::vec2(0.f) };
|
||||
pick = { current->locker_, pick.second };
|
||||
// pick = { nullptr, glm::vec2(0.f) };
|
||||
}
|
||||
// pick on the open lock icon; lock source and cancel pick
|
||||
else if ( UserInterface::manager().ctrlModifier() && pick.first == current->unlock_ ) {
|
||||
|
||||
Reference in New Issue
Block a user