MMGraphNode should instance PolygonEdit instead of PolygonEditor.

This commit is contained in:
Relintai 2022-06-15 17:57:20 +02:00
parent 08c6131285
commit 9975ea358f

View File

@ -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<PackedScene> 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;