diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-10 12:12:34 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-10 12:12:34 -0600 |
commit | 90ce26a27b194186f02e2eba2aaf56718409a28f (patch) | |
tree | f472e398944cc03d234d3ead186dc12d9da50dd9 /editor/plugins/visual_shader_editor_plugin.cpp | |
parent | 560dfc738da13db0f8f7f8d4d9fbc1d6446aa006 (diff) | |
parent | a47daa0a44900a4246cc8f71041593590c86a711 (diff) | |
download | redot-engine-90ce26a27b194186f02e2eba2aaf56718409a28f.tar.gz |
Merge pull request #94889 from rune-scape/no-const-list-erase
Remove const_cast in `List::erase`
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 05929c5f0d..9c1befa144 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -1472,7 +1472,7 @@ void VisualShaderGraphPlugin::disconnect_nodes(VisualShader::Type p_type, int p_ if (visual_shader.is_valid() && visual_shader->get_shader_type() == p_type) { graph->disconnect_node(itos(p_from_node), p_from_port, itos(p_to_node), p_to_port); - for (const List<VisualShader::Connection>::Element *E = connections.front(); E; E = E->next()) { + for (List<VisualShader::Connection>::Element *E = connections.front(); E; E = E->next()) { if (E->get().from_node == p_from_node && E->get().from_port == p_from_port && E->get().to_node == p_to_node && E->get().to_port == p_to_port) { connections.erase(E); break; |