summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-25 20:46:04 +0200
committerGitHub <noreply@github.com>2019-09-25 20:46:04 +0200
commitb88291311bd7148dd75f8280231b367f54b41fdd (patch)
tree43332ac3c9cae062006e73547088b19513a72615 /editor/plugins
parente426169e4ce8cbb0a8c0fb04f75e60976058177e (diff)
parentfb9ff00640bc0fcdd5973b28dd6971bba68403d9 (diff)
Merge pull request #32345 from nekomatata/fix-curve-delete-point-error
Reset hovered point in Curve when deleted to avoid errors on draw
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/curve_editor_plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp
index 98db911799..9160920c50 100644
--- a/editor/plugins/curve_editor_plugin.cpp
+++ b/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();
}