Fix a movement handle could get picked up by a station

This commit is contained in:
JonShard
2026-08-02 13:41:30 +02:00
parent 1117d90da6
commit ad9753c65d
+7
View File
@@ -85,6 +85,13 @@ func _set_ghost_color(color: Color) -> void:
func _handle_pickup(_by: Node) -> void: func _handle_pickup(_by: Node) -> void:
print("StationMovement handle pickup") print("StationMovement handle pickup")
if move_handle.get_picked_up_by() is XRToolsSnapZone:
print("StationMovement handle pickup by snap zone, dropping and resetting position")
move_handle.drop()
move_handle.global_position = station.global_position + Vector3(0, original_y_pos, 0)
move_handle.rotation = station.rotation
return
moving = true moving = true
move_ghost.visible = true move_ghost.visible = true
station.visible = false station.visible = false