Skip to content

Commit

Permalink
Fix incorrect typed Array assignment in XR demo scripts (godotengine#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinou authored Jun 26, 2024
1 parent b4c73f4 commit 0ec2fff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xr/openxr_character_centric_movement/start_vr.gd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func _on_openxr_session_begun() -> void:

# See if we have a better refresh rate available.
var new_rate := current_refresh_rate
var available_rates: Array[float] = xr_interface.get_available_display_refresh_rates()
var available_rates: Array = xr_interface.get_available_display_refresh_rates()
if available_rates.is_empty():
print("OpenXR: Target does not support refresh rate extension")
elif available_rates.size() == 1:
Expand Down
2 changes: 1 addition & 1 deletion xr/openxr_origin_centric_movement/start_vr.gd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func _on_openxr_session_begun() -> void:

# See if we have a better refresh rate available.
var new_rate := current_refresh_rate
var available_rates: Array[float] = xr_interface.get_available_display_refresh_rates()
var available_rates: Array = xr_interface.get_available_display_refresh_rates()
if available_rates.is_empty():
print("OpenXR: Target does not support refresh rate extension")
elif available_rates.size() == 1:
Expand Down

0 comments on commit 0ec2fff

Please sign in to comment.