diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-25 20:46:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-25 20:46:18 +0200 |
commit | a9e15a5c88c71c1210b2141c2049643581706b1b (patch) | |
tree | 4d930a27fc271c8fc665178a919b5643e1ffc979 | |
parent | b88291311bd7148dd75f8280231b367f54b41fdd (diff) | |
parent | bdb9149d7eaf58efa9df5d124c07e0cc2d7012e1 (diff) |
Merge pull request #32350 from nekomatata/fix-bezier-curve-deselection-error
Fixed missing argument for clear_selection signal in Bezier Curve editor
-rw-r--r-- | editor/animation_bezier_editor.cpp | 2 | ||||
-rw-r--r-- | editor/animation_track_editor.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp index 9194da654c..1283956ae6 100644 --- a/editor/animation_bezier_editor.cpp +++ b/editor/animation_bezier_editor.cpp @@ -546,7 +546,7 @@ void AnimationBezierTrackEdit::set_timeline(AnimationTimelineEdit *p_timeline) { } void AnimationBezierTrackEdit::set_editor(AnimationTrackEditor *p_editor) { editor = p_editor; - connect("clear_selection", editor, "_clear_selection"); + connect("clear_selection", editor, "_clear_selection", varray(false)); } void AnimationBezierTrackEdit::_play_position_draw() { diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index fa773b17c2..74e8df60f9 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -3080,7 +3080,6 @@ void AnimationTrackEdit::_bind_methods() { ADD_SIGNAL(MethodInfo("insert_key", PropertyInfo(Variant::REAL, "ofs"))); ADD_SIGNAL(MethodInfo("select_key", PropertyInfo(Variant::INT, "index"), PropertyInfo(Variant::BOOL, "single"))); ADD_SIGNAL(MethodInfo("deselect_key", PropertyInfo(Variant::INT, "index"))); - ADD_SIGNAL(MethodInfo("clear_selection")); ADD_SIGNAL(MethodInfo("bezier_edit")); ADD_SIGNAL(MethodInfo("move_selection_begin")); @@ -4265,7 +4264,6 @@ void AnimationTrackEditor::_update_tracks() { track_edit->connect("select_key", this, "_key_selected", varray(i), CONNECT_DEFERRED); track_edit->connect("deselect_key", this, "_key_deselected", varray(i), CONNECT_DEFERRED); track_edit->connect("bezier_edit", this, "_bezier_edit", varray(i), CONNECT_DEFERRED); - track_edit->connect("clear_selection", this, "_clear_selection"); track_edit->connect("move_selection_begin", this, "_move_selection_begin"); track_edit->connect("move_selection", this, "_move_selection"); track_edit->connect("move_selection_commit", this, "_move_selection_commit"); |