From 7c6b659bd799080ca3a84110b112313a8cd12b1f Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 8 Nov 2022 19:53:22 +0100 Subject: Add PropertyInfo overload for GLOBAL_DEF --- modules/webrtc/register_types.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/webrtc') diff --git a/modules/webrtc/register_types.cpp b/modules/webrtc/register_types.cpp index 09cd538b96..e89fce2ed3 100644 --- a/modules/webrtc/register_types.cpp +++ b/modules/webrtc/register_types.cpp @@ -43,8 +43,7 @@ void initialize_webrtc_module(ModuleInitializationLevel p_level) { } #define SET_HINT(NAME, _VAL_, _MAX_) \ - GLOBAL_DEF(NAME, _VAL_); \ - ProjectSettings::get_singleton()->set_custom_property_info(NAME, PropertyInfo(Variant::INT, NAME, PROPERTY_HINT_RANGE, "2," #_MAX_ ",1,or_greater")); + GLOBAL_DEF(PropertyInfo(Variant::INT, NAME, PROPERTY_HINT_RANGE, "2," #_MAX_ ",1,or_greater"), _VAL_); SET_HINT(WRTC_IN_BUF, 64, 4096); -- cgit v1.2.3