From 2539e01711c367dd85df4cbe325f99a75129d2f7 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 15 Jun 2022 20:30:36 +0200 Subject: [PATCH] Fix duplicate binds in CurveEdit. Also smaller fixes. --- .../material_maker/editor/widgets/curve_edit/curve_edit.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/material_maker/editor/widgets/curve_edit/curve_edit.cpp b/modules/material_maker/editor/widgets/curve_edit/curve_edit.cpp index 451087e1f..58f5c9692 100644 --- a/modules/material_maker/editor/widgets/curve_edit/curve_edit.cpp +++ b/modules/material_maker/editor/widgets/curve_edit/curve_edit.cpp @@ -13,7 +13,6 @@ Ref CurveEdit::get_value() { void CurveEdit::set_value(const Ref &v) { value = v; _curve_view->set_curve(value); - _curve_view->update(); } void CurveEdit::_on_CurveEdit_pressed() { @@ -34,7 +33,6 @@ CurveEdit::CurveEdit() { set_focus_mode(FOCUS_CLICK); _curve_view = memnew(CurveView); - _curve_view->set_name("CurveView"); add_child(_curve_view); _curve_view->set_mouse_filter(MOUSE_FILTER_IGNORE); } @@ -49,7 +47,6 @@ void CurveEdit::_bind_methods() { ClassDB::bind_method(D_METHOD("set_value", "value"), &CurveEdit::set_value); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "value", PROPERTY_HINT_RESOURCE_TYPE, "CurveBase"), "set_value", "get_value"); - ClassDB::bind_method(D_METHOD("set_value", "v"), &CurveEdit::set_value); ClassDB::bind_method(D_METHOD("_on_CurveEdit_pressed"), &CurveEdit::_on_CurveEdit_pressed); ClassDB::bind_method(D_METHOD("on_value_changed", "v"), &CurveEdit::on_value_changed); }