Fix control line and spot removal spot highlight
Return the geometry color to normal (white) when exiting edit mode.
This commit is contained in:
@@ -274,6 +274,9 @@ void ControlLineManager::releaseEdit(void)
|
|||||||
if (selected_object > 0) {
|
if (selected_object > 0) {
|
||||||
mouseOverGeometry[selected_object]->state = Geometry::NORMAL;
|
mouseOverGeometry[selected_object]->state = Geometry::NORMAL;
|
||||||
}
|
}
|
||||||
|
if (prev_obj > 0) {
|
||||||
|
visibleGeometry[prev_obj - 1]->state = Geometry::NORMAL;
|
||||||
|
}
|
||||||
|
|
||||||
edited = true;
|
edited = true;
|
||||||
callbacks->lineChanged();
|
callbacks->lineChanged();
|
||||||
|
@@ -198,8 +198,8 @@ void Spot::releaseEdit()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
loGeom->state = Geometry::ACTIVE;
|
loGeom->state = Geometry::NORMAL;
|
||||||
sourceIcon.state = Geometry::ACTIVE;
|
sourceIcon.state = Geometry::NORMAL;
|
||||||
EditSubscriber::action = EditSubscriber::Action::NONE;
|
EditSubscriber::action = EditSubscriber::Action::NONE;
|
||||||
draggedSide = DraggedSide::NONE;
|
draggedSide = DraggedSide::NONE;
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
|
Reference in New Issue
Block a user