diff --git a/modules/material_maker/editor/mat_maker_gd_editor.cpp b/modules/material_maker/editor/mat_maker_gd_editor.cpp index 5783e5da5..437df5294 100644 --- a/modules/material_maker/editor/mat_maker_gd_editor.cpp +++ b/modules/material_maker/editor/mat_maker_gd_editor.cpp @@ -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); diff --git a/modules/material_maker/nodes/bases/curve_base.cpp b/modules/material_maker/nodes/bases/curve_base.cpp index 4ca80a5ae..52e9380e6 100644 --- a/modules/material_maker/nodes/bases/curve_base.cpp +++ b/modules/material_maker/nodes/bases/curve_base.cpp @@ -35,7 +35,7 @@ void CurveBase::init_points_11() { } } -String CurveBase::to_string() { +String CurveBase::_to_string() { PoolStringArray rv; Vector 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); diff --git a/modules/material_maker/nodes/bases/curve_base.h b/modules/material_maker/nodes/bases/curve_base.h index 19ba2a6d7..857a7229f 100644 --- a/modules/material_maker/nodes/bases/curve_base.h +++ b/modules/material_maker/nodes/bases/curve_base.h @@ -42,7 +42,7 @@ public: void init_points_01(); void init_points_11(); - String to_string(); + String _to_string(); void clear(); diff --git a/modules/material_maker/nodes/bases/polygon_base.cpp b/modules/material_maker/nodes/bases/polygon_base.cpp index eee6d524f..9ebf3bf67 100644 --- a/modules/material_maker/nodes/bases/polygon_base.cpp +++ b/modules/material_maker/nodes/bases/polygon_base.cpp @@ -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); } diff --git a/modules/material_maker/nodes/bases/polygon_base.h b/modules/material_maker/nodes/bases/polygon_base.h index 4d2844ed7..2d152fa45 100644 --- a/modules/material_maker/nodes/bases/polygon_base.h +++ b/modules/material_maker/nodes/bases/polygon_base.h @@ -26,7 +26,7 @@ public: void polygon_changed(); void _polygon_changed(); - String to_string(); + String _to_string(); PolygonBase(); ~PolygonBase();