From 72b69b3249d86909e1e254d7b3908fc1558b1f09 Mon Sep 17 00:00:00 2001 From: Lawrence Lee Date: Wed, 10 Jun 2020 12:35:53 -0700 Subject: [PATCH] Fix a few small control lines bugs --- rtgui/perspective.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtgui/perspective.cc b/rtgui/perspective.cc index 777278419..d141cb07a 100644 --- a/rtgui/perspective.cc +++ b/rtgui/perspective.cc @@ -807,6 +807,9 @@ bool ControlLineManager::button1Pressed(int modifierKey) bool ControlLineManager::button1Released(void) { action = Action::NONE; + if (selected_object > 0) { + mouseOverGeometry[selected_object]->state = Geometry::NORMAL; + } selected_object = -1; return false; } @@ -863,6 +866,8 @@ bool ControlLineManager::pick1(bool picked) bool ControlLineManager::pick3(bool picked) { + action = Action::NONE; + if (!picked) { return false; }