summaryrefslogtreecommitdiffstats
path: root/scene/3d/spring_arm_3d.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-02-10 12:00:11 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-02-10 12:30:19 +0100
commit1bdb82c64e65f23381183051ef1fc9856a7830f8 (patch)
tree82f8a101fb4461d29bc9dd1e2bc147bb99c706f6 /scene/3d/spring_arm_3d.cpp
parentf21a62b62027a88ea90de539a48df8e280a820e8 (diff)
downloadredot-engine-1bdb82c64e65f23381183051ef1fc9856a7830f8.tar.gz
Fix typos with codespell
Using codespell 2.2-dev from current git. Added `misc/scripts/codespell.sh` to make it easier to run it once in a while and update the skip and ignore lists.
Diffstat (limited to 'scene/3d/spring_arm_3d.cpp')
-rw-r--r--scene/3d/spring_arm_3d.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/3d/spring_arm_3d.cpp b/scene/3d/spring_arm_3d.cpp
index e0cd44e05b..8a8964f69a 100644
--- a/scene/3d/spring_arm_3d.cpp
+++ b/scene/3d/spring_arm_3d.cpp
@@ -185,14 +185,14 @@ void SpringArm3D::process_spring() {
}
current_spring_length = spring_length * motion_delta;
- Transform3D childs_transform;
- childs_transform.origin = get_global_transform().origin + cast_direction * (spring_length * motion_delta);
+ Transform3D child_transform;
+ child_transform.origin = get_global_transform().origin + cast_direction * (spring_length * motion_delta);
for (int i = get_child_count() - 1; 0 <= i; --i) {
Node3D *child = Object::cast_to<Node3D>(get_child(i));
if (child) {
- childs_transform.basis = child->get_global_transform().basis;
- child->set_global_transform(childs_transform);
+ child_transform.basis = child->get_global_transform().basis;
+ child->set_global_transform(child_transform);
}
}
}