From 08c613128501e4bbcdceffc74800b1fb3966b939 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 15 Jun 2022 17:56:32 +0200 Subject: [PATCH] Fix duplicate properties in PolygonEdit. --- .../editor/widgets/polygon_edit/polygon_edit.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/material_maker/editor/widgets/polygon_edit/polygon_edit.cpp b/modules/material_maker/editor/widgets/polygon_edit/polygon_edit.cpp index 2ecd65043..93db9ed6a 100644 --- a/modules/material_maker/editor/widgets/polygon_edit/polygon_edit.cpp +++ b/modules/material_maker/editor/widgets/polygon_edit/polygon_edit.cpp @@ -59,15 +59,13 @@ void PolygonEdit::_bind_methods() { ADD_SIGNAL(MethodInfo("updated", PropertyInfo(Variant::OBJECT, "polygon", PROPERTY_HINT_RESOURCE_TYPE, "PolygonBase"))); ClassDB::bind_method(D_METHOD("get_closed"), &PolygonEdit::get_closed); - ClassDB::bind_method(D_METHOD("set_closed", "value"), &PolygonEdit::set_closed); + ClassDB::bind_method(D_METHOD("set_closed", "value"), &PolygonEdit::set_closed, true); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "closed"), "set_closed", "get_closed"); ClassDB::bind_method(D_METHOD("get_value"), &PolygonEdit::get_value); ClassDB::bind_method(D_METHOD("set_value", "value"), &PolygonEdit::set_value); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "value", PROPERTY_HINT_RESOURCE_TYPE, "PolygonBase"), "set_value", "get_value"); - ClassDB::bind_method(D_METHOD("set_closed", "c"), &PolygonEdit::set_closed, true); - ClassDB::bind_method(D_METHOD("set_value", "v"), &PolygonEdit::set_value); ClassDB::bind_method(D_METHOD("_on_PolygonEdit_pressed"), &PolygonEdit::_on_PolygonEdit_pressed); ClassDB::bind_method(D_METHOD("on_value_changed", "v"), &PolygonEdit::on_value_changed); }