diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-18 09:17:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-18 09:17:51 +0100 |
commit | e462e2934d366261e37b69e03f98969c79e76cfe (patch) | |
tree | 718f970f20e0ebd19a88e1f69b2ddb1b2915b5ec | |
parent | acc9b5b390a8a28cb31106f569303e665bd26b3e (diff) | |
parent | 99e26b6e63dee8b735fa82be11872658f9755760 (diff) | |
download | redot-engine-e462e2934d366261e37b69e03f98969c79e76cfe.tar.gz |
Merge pull request #59263 from Chaosus/vs_fix_expression_port_name_crash
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 7f30dd91e5..d83cf17048 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -1773,8 +1773,6 @@ void VisualShaderEditor::_change_input_port_name(const String &p_text, Object *p undo_redo->create_action(TTR("Change Input Port Name")); undo_redo->add_do_method(node.ptr(), "set_input_port_name", p_port_id, validated_name); undo_redo->add_undo_method(node.ptr(), "set_input_port_name", p_port_id, node->get_input_port_name(p_port_id)); - undo_redo->add_do_method(graph_plugin.ptr(), "update_node", type, p_node_id); - undo_redo->add_undo_method(graph_plugin.ptr(), "update_node", type, p_node_id); undo_redo->commit_action(); } @@ -1801,8 +1799,6 @@ void VisualShaderEditor::_change_output_port_name(const String &p_text, Object * undo_redo->create_action(TTR("Change Output Port Name")); undo_redo->add_do_method(node.ptr(), "set_output_port_name", p_port_id, validated_name); undo_redo->add_undo_method(node.ptr(), "set_output_port_name", p_port_id, prev_name); - undo_redo->add_do_method(graph_plugin.ptr(), "update_node", type, p_node_id); - undo_redo->add_undo_method(graph_plugin.ptr(), "update_node", type, p_node_id); undo_redo->commit_action(); } |