summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2019-08-30 14:20:25 -0300
committerMichael Alexsander Silva Dias <michaelalexsander@protonmail.com>2019-08-30 14:22:46 -0300
commitc902066bb5276d664dbd3c61cb5a3adf28ee6491 (patch)
tree82c9c1b1f99eab56ea6a301c6c8b04a892c88b3a /scene/3d
parentba854bbc7bb0eae230299de4da8dfcb7caf74b69 (diff)
Remove some unneeded checks in CollisionObject(2D)
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/collision_object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/3d/collision_object.cpp b/scene/3d/collision_object.cpp
index 63301fc226..735b393171 100644
--- a/scene/3d/collision_object.cpp
+++ b/scene/3d/collision_object.cpp
@@ -105,7 +105,8 @@ void CollisionObject::_mouse_exit() {
void CollisionObject::_update_pickable() {
if (!is_inside_tree())
return;
- bool pickable = ray_pickable && is_inside_tree() && is_visible_in_tree();
+
+ bool pickable = ray_pickable && is_visible_in_tree();
if (area)
PhysicsServer::get_singleton()->area_set_ray_pickable(rid, pickable);
else