Reset hovered point in Curve when deleted to avoid errors on draw

Fixes #32344
This commit is contained in:
PouleyKetchoupp 2019-09-25 18:56:59 +02:00
parent 0ea54eeb06
commit fb9ff00640

View file

@ -456,6 +456,9 @@ void CurveEditor::remove_point(int index) {
if (index == _selected_point)
set_selected_point(-1);
if (index == _hover_point)
set_hover_point_index(-1);
ur.commit_action();
}