From a076792a3cd213bcc1621ad410241fd22982caa1 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 18 Jul 2023 13:55:04 +0200 Subject: [PATCH] Fix wrong Curve connection --- editor/plugins/curve_editor_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp index 81be475d646..3f5dae14236 100644 --- a/editor/plugins/curve_editor_plugin.cpp +++ b/editor/plugins/curve_editor_plugin.cpp @@ -62,14 +62,14 @@ void CurveEdit::set_curve(Ref 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,