|
@@ -376,11 +376,12 @@ void CollisionObject2D::set_only_update_transform_changes(bool p_enable) {
|
|
|
void CollisionObject2D::_update_pickable() {
|
|
|
if (!is_inside_tree())
|
|
|
return;
|
|
|
- bool pickable = this->pickable && is_inside_tree() && is_visible_in_tree();
|
|
|
+
|
|
|
+ bool is_pickable = pickable && is_visible_in_tree();
|
|
|
if (area)
|
|
|
- Physics2DServer::get_singleton()->area_set_pickable(rid, pickable);
|
|
|
+ Physics2DServer::get_singleton()->area_set_pickable(rid, is_pickable);
|
|
|
else
|
|
|
- Physics2DServer::get_singleton()->body_set_pickable(rid, pickable);
|
|
|
+ Physics2DServer::get_singleton()->body_set_pickable(rid, is_pickable);
|
|
|
}
|
|
|
|
|
|
String CollisionObject2D::get_configuration_warning() const {
|