Fix control line and spot removal spot highlight

Return the geometry color to normal (white) when exiting edit mode.
This commit is contained in:
Lawrence Lee
2021-05-23 12:10:40 -07:00
parent 4bc69dc30c
commit 051d69331f
2 changed files with 5 additions and 2 deletions

View File

@@ -274,6 +274,9 @@ void ControlLineManager::releaseEdit(void)
if (selected_object > 0) {
mouseOverGeometry[selected_object]->state = Geometry::NORMAL;
}
if (prev_obj > 0) {
visibleGeometry[prev_obj - 1]->state = Geometry::NORMAL;
}
edited = true;
callbacks->lineChanged();

View File

@@ -198,8 +198,8 @@ void Spot::releaseEdit()
return;
}
loGeom->state = Geometry::ACTIVE;
sourceIcon.state = Geometry::ACTIVE;
loGeom->state = Geometry::NORMAL;
sourceIcon.state = Geometry::NORMAL;
EditSubscriber::action = EditSubscriber::Action::NONE;
draggedSide = DraggedSide::NONE;
updateGeometry();