Explorar o código

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

Fixes #32344
PouleyKetchoupp %!s(int64=6) %!d(string=hai) anos
pai
achega
fb9ff00640
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      editor/plugins/curve_editor_plugin.cpp

+ 3 - 0
editor/plugins/curve_editor_plugin.cpp

@@ -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();
 }