Fix binding related errors on startup.

This commit is contained in:
Relintai 2022-06-14 18:44:45 +02:00
parent 1890f45fe1
commit 38b918c515
5 changed files with 7 additions and 7 deletions

View File

@ -357,7 +357,7 @@ void MatMakerGDEditor::_bind_methods() {
ClassDB::bind_method(D_METHOD("recreate"), &MatMakerGDEditor::recreate);
//ClassDB::bind_method(D_METHOD("find_graph_node_for", "nnode"), &MatMakerGDEditor::find_graph_node_for);
ClassDB::bind_method(D_METHOD("set_mm_material", "object"), &MatMakerGDEditor::set_mm_material);
//ClassDB::bind_method(D_METHOD("set_mm_material", "object"), &MatMakerGDEditor::set_mm_material);
ClassDB::bind_method(D_METHOD("on_material_changed"), &MatMakerGDEditor::on_material_changed);
ClassDB::bind_method(D_METHOD("ignore_changes", "val"), &MatMakerGDEditor::ignore_changes);

View File

@ -35,7 +35,7 @@ void CurveBase::init_points_11() {
}
}
String CurveBase::to_string() {
String CurveBase::_to_string() {
PoolStringArray rv;
Vector<CurveBase::Point> ps = get_points();
@ -183,7 +183,7 @@ void CurveBase::_bind_methods() {
ClassDB::bind_method(D_METHOD("init_points_01"), &CurveBase::init_points_01);
ClassDB::bind_method(D_METHOD("init_points_11"), &CurveBase::init_points_11);
ClassDB::bind_method(D_METHOD("to_string"), &CurveBase::to_string);
ClassDB::bind_method(D_METHOD("_to_string"), &CurveBase::_to_string);
ClassDB::bind_method(D_METHOD("clear"), &CurveBase::clear);

View File

@ -42,7 +42,7 @@ public:
void init_points_01();
void init_points_11();
String to_string();
String _to_string();
void clear();

View File

@ -88,7 +88,7 @@ void PolygonBase::_polygon_changed() {
emit_changed();
}
String PolygonBase::to_string() {
String PolygonBase::_to_string() {
String rv;
PoolVector2Array ps = get_points();
@ -128,5 +128,5 @@ void PolygonBase::_bind_methods() {
ClassDB::bind_method(D_METHOD("polygon_changed"), &PolygonBase::polygon_changed);
ClassDB::bind_method(D_METHOD("_polygon_changed"), &PolygonBase::_polygon_changed);
ClassDB::bind_method(D_METHOD("to_string"), &PolygonBase::to_string);
ClassDB::bind_method(D_METHOD("_to_string"), &PolygonBase::_to_string);
}

View File

@ -26,7 +26,7 @@ public:
void polygon_changed();
void _polygon_changed();
String to_string();
String _to_string();
PolygonBase();
~PolygonBase();