From cbe3a2dcb775966662fa3213625adcfa0bbdf80c Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 11 Jul 2022 12:40:31 +0300 Subject: Use BitField hint for the TextServer enums. Add missing parts for BitField support to the GDextension API. --- core/variant/type_info.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/variant') diff --git a/core/variant/type_info.h b/core/variant/type_info.h index 794274dd77..1bd3a74289 100644 --- a/core/variant/type_info.h +++ b/core/variant/type_info.h @@ -289,6 +289,7 @@ public: _FORCE_INLINE_ void clear_flag(T p_flag) { return value &= ~p_flag; } _FORCE_INLINE_ BitField(uint32_t p_value) { value = p_value; } _FORCE_INLINE_ operator uint32_t() const { return value; } + _FORCE_INLINE_ operator Variant() const { return value; } }; #define TEMPL_MAKE_BITFIELD_TYPE_INFO(m_enum, m_impl) \ -- cgit v1.2.3