Skip to content

Commit

Permalink
Merge pull request #79609 from KoBeWi/one_dollar_mistake
Browse files Browse the repository at this point in the history
Fix wrong Curve connection
  • Loading branch information
YuriSizov committed Jul 18, 2023
2 parents ec66c53 + a076792 commit 9c39fe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/plugins/curve_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ void CurveEdit::set_curve(Ref<Curve> p_curve) {

if (curve.is_valid()) {
curve->disconnect_changed(callable_mp(this, &CurveEdit::_curve_changed));
curve->disconnect_changed(callable_mp(this, &CurveEdit::_curve_changed));
curve->disconnect(Curve::SIGNAL_RANGE_CHANGED, callable_mp(this, &CurveEdit::_curve_changed));
}

curve = p_curve;

if (curve.is_valid()) {
curve->connect_changed(callable_mp(this, &CurveEdit::_curve_changed));
curve->connect_changed(callable_mp(this, &CurveEdit::_curve_changed));
curve->connect(Curve::SIGNAL_RANGE_CHANGED, callable_mp(this, &CurveEdit::_curve_changed));
}

// Note: if you edit a curve, then set another, and try to undo,
Expand Down

0 comments on commit 9c39fe0

Please sign in to comment.