diff --git a/modules/material_maker/editor/mm_graph_node.cpp b/modules/material_maker/editor/mm_graph_node.cpp index c58111682..ce8e3cbb5 100644 --- a/modules/material_maker/editor/mm_graph_node.cpp +++ b/modules/material_maker/editor/mm_graph_node.cpp @@ -21,7 +21,7 @@ #include "widgets/curve_edit/curve_editor.h" #include "widgets/gradient_editor/gradient_editor.h" #include "widgets/image_picker_button/image_picker_button.h" -#include "widgets/polygon_edit/polygon_editor.h" +#include "widgets/polygon_edit/polygon_edit.h" Ref MMGraphNode::get_gradient_editor_scene() { return gradient_editor_scene; @@ -168,9 +168,9 @@ int MMGraphNode::add_slot_gradient() { int MMGraphNode::add_slot_polygon() { ERR_FAIL_COND_V(!_node->is_class("PolygonBase"), 0); - PolygonEditor *pe = memnew(PolygonEditor); + PolygonEdit *pe = memnew(PolygonEdit); int slot_idx = add_slot(MMNodeUniversalProperty::SLOT_TYPE_NONE, MMNodeUniversalProperty::SLOT_TYPE_NONE, "", "", pe); - pe->set_polygon(_node); + pe->set_value(_node); //ge.texture = _node.call(getter, _material, slot_idx); //properties[slot_idx].append(ge.texture); return slot_idx;