Skip to content

Commit

Permalink
Fix updating collision mask on incorrect object in pickup function (#699
Browse files Browse the repository at this point in the history
)
  • Loading branch information
BastiaanOlij authored Jan 10, 2025
1 parent 19f089e commit d36af37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/godot-xr-tools/functions/function_pickup.gd
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ func _set_grab_distance(new_value: float) -> void:
# Called when the grab collision mask has been modified
func _set_grab_collision_mask(new_value: int) -> void:
grab_collision_mask = new_value
if is_inside_tree() and _grab_collision:
_grab_collision.collision_mask = new_value
if is_inside_tree() and _grab_area:
_grab_area.collision_mask = new_value


# Called when the ranged-grab distance has been modified
Expand Down

0 comments on commit d36af37

Please sign in to comment.