summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-01-12 12:49:16 +0100
committerGitHub <noreply@github.com>2018-01-12 12:49:16 +0100
commit2dbd3475a56dbd0f0ea2967edf2c44e5c4ee316a (patch)
tree4f7978b02f1df32122210bafc96023f07f586b98 /scene/3d
parenta26e6c82159c290a53c463dc4714789fc25391c2 (diff)
parent207af6c4f9b8204b0832ce95570fd1d757953034 (diff)
Merge pull request #15620 from AndreaCatania/p4
Reset collider on ray node
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/ray_cast.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/ray_cast.cpp b/scene/3d/ray_cast.cpp
index 556774a0d1..dd5ae8a999 100644
--- a/scene/3d/ray_cast.cpp
+++ b/scene/3d/ray_cast.cpp
@@ -217,6 +217,8 @@ void RayCast::_update_raycast_state() {
against_shape = rr.shape;
} else {
collided = false;
+ against = 0;
+ against_shape = 0;
}
}