From d3c7a61cefa2d4793ca5a6699af2e0231706bc21 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 15 Jun 2022 18:57:08 +0200 Subject: [PATCH] MMGraphNode should use GraphEdit Instead of MMGraphEditor. --- modules/material_maker/editor/mm_graph_node.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/material_maker/editor/mm_graph_node.cpp b/modules/material_maker/editor/mm_graph_node.cpp index ce8e3cbb5..0b109d606 100644 --- a/modules/material_maker/editor/mm_graph_node.cpp +++ b/modules/material_maker/editor/mm_graph_node.cpp @@ -18,7 +18,7 @@ #include "scene/gui/spin_box.h" #include "scene/gui/texture_rect.h" -#include "widgets/curve_edit/curve_editor.h" +#include "widgets/curve_edit/curve_edit.h" #include "widgets/gradient_editor/gradient_editor.h" #include "widgets/image_picker_button/image_picker_button.h" #include "widgets/polygon_edit/polygon_edit.h" @@ -179,9 +179,9 @@ int MMGraphNode::add_slot_polygon() { int MMGraphNode::add_slot_curve() { ERR_FAIL_COND_V(!_node->is_class("CurveBase"), 0); - MMCurveEditor *ce = memnew(MMCurveEditor); + CurveEdit *ce = memnew(CurveEdit); int slot_idx = add_slot(MMNodeUniversalProperty::SLOT_TYPE_NONE, MMNodeUniversalProperty::SLOT_TYPE_NONE, "", "", ce); - ce->set_curve(_node); + ce->set_value(_node); //ge.texture = _node.call(getter, _material, slot_idx); //properties[slot_idx].append(ge.texture); return slot_idx;