diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-07-01 12:59:42 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-07-01 12:59:42 +0200 |
commit | 3c154eb93b3a098354bf6d18a9428826ec193f90 (patch) | |
tree | d9c8c44f13883ceadaefc95953f9cb077137b7c8 /editor/plugins/curve_editor_plugin.cpp | |
parent | eaaff9da3178fa515a0f051fda932c1dd04d53db (diff) | |
download | redot-engine-3c154eb93b3a098354bf6d18a9428826ec193f90.tar.gz |
Remove unnecessary code and add some error explanations
Diffstat (limited to 'editor/plugins/curve_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/curve_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp index 3b1d728b8b..d2d2b8f130 100644 --- a/editor/plugins/curve_editor_plugin.cpp +++ b/editor/plugins/curve_editor_plugin.cpp @@ -156,9 +156,9 @@ void CurveEditor::on_gui_input(const Ref<InputEvent> &p_event) { Vector2 mpos = mm.get_position(); if (_dragging && _curve_ref.is_valid()) { - Curve &curve = **_curve_ref; if (_selected_point != -1) { + Curve &curve = **_curve_ref; if (!_has_undo_data) { // Save full curve state before dragging points, |