diff options
author | Bastiaan Olij <mux213@gmail.com> | 2022-12-07 10:17:34 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2022-12-07 10:17:34 +1100 |
commit | 0b48ca03034af0fc7a20b9d3010f1a70d4edec66 (patch) | |
tree | 39cc589e7477cc7d8a9bb67eb803553ccd8ef38f /modules/openxr | |
parent | c241f1c52386b21cf2df936ee927740a06970db6 (diff) |
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); } |