summaryrefslogtreecommitdiff
path: root/scene/animation
diff options
context:
space:
mode:
authorLightning_A <aaronjrecord@gmail.com>2021-08-09 09:03:45 -0600
committerLightning_A <aaronjrecord@gmail.com>2021-09-30 15:07:30 -0600
commite4dfa69bcf58e4d50acdde32c590364e43fce3ab (patch)
treef2e67fe35bacb7ef3171c80b5acb54a6dfd55d89 /scene/animation
parent3e1b6304613855cad56938e8a58848f09363a298 (diff)
Fix non-const iterators in const methods
Diffstat (limited to 'scene/animation')
-rw-r--r--scene/animation/animation_blend_tree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_blend_tree.cpp b/scene/animation/animation_blend_tree.cpp
index af186072ac..c5f36bb98d 100644
--- a/scene/animation/animation_blend_tree.cpp
+++ b/scene/animation/animation_blend_tree.cpp
@@ -978,7 +978,7 @@ AnimationNodeBlendTree::ConnectionError AnimationNodeBlendTree::can_connect_node
for (Map<StringName, Node>::Element *E = nodes.front(); E; E = E->next()) {
for (int i = 0; i < E->get().connections.size(); i++) {
- StringName output = E->get().connections[i];
+ const StringName output = E->get().connections[i];
if (output == p_output_node) {
return CONNECTION_ERROR_CONNECTION_EXISTS;
}
@@ -990,7 +990,7 @@ AnimationNodeBlendTree::ConnectionError AnimationNodeBlendTree::can_connect_node
void AnimationNodeBlendTree::get_node_connections(List<NodeConnection> *r_connections) const {
for (Map<StringName, Node>::Element *E = nodes.front(); E; E = E->next()) {
for (int i = 0; i < E->get().connections.size(); i++) {
- StringName output = E->get().connections[i];
+ const StringName output = E->get().connections[i];
if (output != StringName()) {
NodeConnection nc;
nc.input_node = E->key();