From d36af3730e1a7671cfe379b5531b6e68abeb3504 Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Fri, 10 Jan 2025 12:46:08 +1100 Subject: [PATCH] Fix updating collision mask on incorrect object in pickup function (#699) --- addons/godot-xr-tools/functions/function_pickup.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/godot-xr-tools/functions/function_pickup.gd b/addons/godot-xr-tools/functions/function_pickup.gd index 49af7f95..99ecdd60 100644 --- a/addons/godot-xr-tools/functions/function_pickup.gd +++ b/addons/godot-xr-tools/functions/function_pickup.gd @@ -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