You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Reset hovered point in Curve when deleted to avoid errors on draw
Fixes #32344
This commit is contained in:
@@ -456,6 +456,9 @@ void CurveEditor::remove_point(int index) {
|
|||||||
if (index == _selected_point)
|
if (index == _selected_point)
|
||||||
set_selected_point(-1);
|
set_selected_point(-1);
|
||||||
|
|
||||||
|
if (index == _hover_point)
|
||||||
|
set_hover_point_index(-1);
|
||||||
|
|
||||||
ur.commit_action();
|
ur.commit_action();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user