mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Merge pull request #32345 from nekomatata/fix-curve-delete-point-error
Reset hovered point in Curve when deleted to avoid errors on draw
This commit is contained in:
commit
b88291311b
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user