summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2019-02-21 17:20:44 -0300
committerJuan Linietsky <juan@godotengine.org>2019-02-21 17:21:36 -0300
commit87b303aa9593ca7c1aa0ec2b2846b4d1fc34d0cc (patch)
tree85e664cadb490adffd1f0d61af6b8591ce13f7d9 /scene
parenta01dca79e2f7b7cb221a4c416cade4fad2941446 (diff)
Fixed bugs in test body motion and removed unnecesary test in move_and_slide. Fixes #25968
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/physics_body_2d.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/scene/2d/physics_body_2d.cpp b/scene/2d/physics_body_2d.cpp
index 44b81dc0cc..ce80bc508e 100644
--- a/scene/2d/physics_body_2d.cpp
+++ b/scene/2d/physics_body_2d.cpp
@@ -1309,9 +1309,6 @@ Vector2 KinematicBody2D::move_and_slide(const Vector2 &p_linear_velocity, const
motion = motion.slide(n);
lv = lv.slide(n);
}
-
- if (p_stop_on_slope)
- break;
}
if (!found_collision) {