From c3784431650d32c3614d6302501bed5f1cdc721d Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Fri, 20 Dec 2024 16:08:03 +1100 Subject: [PATCH] OpenXR: Make sure wedge on DPad modifier is expressed in degrees. --- modules/openxr/extensions/openxr_dpad_binding_extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openxr/extensions/openxr_dpad_binding_extension.cpp b/modules/openxr/extensions/openxr_dpad_binding_extension.cpp index 3cca29d4d62f..6945e5c63bd8 100644 --- a/modules/openxr/extensions/openxr_dpad_binding_extension.cpp +++ b/modules/openxr/extensions/openxr_dpad_binding_extension.cpp @@ -93,7 +93,7 @@ void OpenXRDpadBindingModifier::_bind_methods() { ClassDB::bind_method(D_METHOD("set_wedge_angle", "wedge_angle"), &OpenXRDpadBindingModifier::set_wedge_angle); ClassDB::bind_method(D_METHOD("get_wedge_angle"), &OpenXRDpadBindingModifier::get_wedge_angle); - ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "wedge_angle"), "set_wedge_angle", "get_wedge_angle"); + ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "wedge_angle", PROPERTY_HINT_RANGE, "1.0, 180.0, 0.1,radians_as_degrees"), "set_wedge_angle", "get_wedge_angle"); ClassDB::bind_method(D_METHOD("set_is_sticky", "is_sticky"), &OpenXRDpadBindingModifier::set_is_sticky); ClassDB::bind_method(D_METHOD("get_is_sticky"), &OpenXRDpadBindingModifier::get_is_sticky);