diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-07 13:25:48 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-07 13:25:48 +0100 |
commit | 62f7f378d48d0a43d4252dc4a601738618c7b954 (patch) | |
tree | 9d41809eae5400120998f57eea55cc146ca0ee85 /modules/openxr | |
parent | a565ddcd09316b508f61647eb2d6e0b44fbc5a27 (diff) | |
parent | 0b48ca03034af0fc7a20b9d3010f1a70d4edec66 (diff) |
Merge pull request #69690 from BastiaanOlij/display_refresh_type
Fix property type for OpenXR display refresh rate
Diffstat (limited to 'modules/openxr')
-rw-r--r-- | modules/openxr/openxr_interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/openxr/openxr_interface.cpp b/modules/openxr/openxr_interface.cpp index 77660eb6f0..40190ab2f3 100644 --- a/modules/openxr/openxr_interface.cpp +++ b/modules/openxr/openxr_interface.cpp @@ -45,7 +45,7 @@ void OpenXRInterface::_bind_methods() { // Display refresh rate ClassDB::bind_method(D_METHOD("get_display_refresh_rate"), &OpenXRInterface::get_display_refresh_rate); ClassDB::bind_method(D_METHOD("set_display_refresh_rate", "refresh_rate"), &OpenXRInterface::set_display_refresh_rate); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "display_refresh_rate"), "set_display_refresh_rate", "get_display_refresh_rate"); + ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "display_refresh_rate"), "set_display_refresh_rate", "get_display_refresh_rate"); ClassDB::bind_method(D_METHOD("get_available_display_refresh_rates"), &OpenXRInterface::get_available_display_refresh_rates); } |