mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-10 21:09:38 +01:00
MMGraphNode should instance PolygonEdit instead of PolygonEditor.
This commit is contained in:
parent
08c6131285
commit
9975ea358f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user