diff options
-rw-r--r-- | tools/editor/plugins/shader_graph_editor_plugin.cpp | 2 | ||||
-rw-r--r-- | tools/editor/plugins/shader_graph_editor_plugin.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/plugins/shader_graph_editor_plugin.cpp b/tools/editor/plugins/shader_graph_editor_plugin.cpp index 1997b268a7..684e7e32ef 100644 --- a/tools/editor/plugins/shader_graph_editor_plugin.cpp +++ b/tools/editor/plugins/shader_graph_editor_plugin.cpp @@ -1246,7 +1246,7 @@ void ShaderGraphView::_duplicate_nodes_request() } -void ShaderGraphView::_duplicate_nodes(Array &p_nodes) +void ShaderGraphView::_duplicate_nodes(const Array &p_nodes) { List<int> n = List<int>(); for (int i=0; i<p_nodes.size();i++) diff --git a/tools/editor/plugins/shader_graph_editor_plugin.h b/tools/editor/plugins/shader_graph_editor_plugin.h index 800fdf1fea..39e9b29d45 100644 --- a/tools/editor/plugins/shader_graph_editor_plugin.h +++ b/tools/editor/plugins/shader_graph_editor_plugin.h @@ -149,7 +149,7 @@ class ShaderGraphView : public Node { void _end_node_move(); void _move_node(int p_id,const Vector2& p_to); void _duplicate_nodes_request(); - void _duplicate_nodes(Array &p_nodes); + void _duplicate_nodes(const Array &p_nodes); void _delete_nodes_request(); |