From 7f5e462ad048f2b2966a95ad587fe86d5aa21bd9 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 8 Jun 2022 21:23:48 +0200 Subject: [PATCH] Fix one more error. --- modules/material_maker/editor/mat_maker_gd_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/material_maker/editor/mat_maker_gd_editor.cpp b/modules/material_maker/editor/mat_maker_gd_editor.cpp index ecef9cedb..31f610426 100644 --- a/modules/material_maker/editor/mat_maker_gd_editor.cpp +++ b/modules/material_maker/editor/mat_maker_gd_editor.cpp @@ -231,8 +231,8 @@ void MatMakerGDEditor::on_graph_node_close_request(Node *p_node) { _material->cancel_render_and_wait(); //_material.remove_node(node._node); get_undo_redo()->create_action("MMGD: Remove Node"); - get_undo_redo()->add_do_method(*_material, "remove_node", node->get_node()); - get_undo_redo()->add_undo_method(*_material, "add_node", node->get_node()); + get_undo_redo()->add_do_method(*_material, "remove_node", node->get_mm_node()); + get_undo_redo()->add_undo_method(*_material, "add_node", node->get_mm_node()); get_undo_redo()->commit_action(); recreate();