diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-09 16:57:27 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-09 16:57:27 +0100 |
commit | dfa20725bc8cd3babaffdbc0c40432457abb07d9 (patch) | |
tree | fe4b6c1fcb0fb6391af1cccf040e9417c0428c4b | |
parent | 47c0c2cd9a9323d5e0d1dd5a50f02b36e5601c3e (diff) | |
parent | 59e8fc1edf422773e998b4265c78b52d3074366e (diff) |
Merge pull request #71116 from raulsntos/dotnet/core-bitfield-enums
C#: Add `[Flags]` attribute to core bitfield enums
-rw-r--r-- | modules/mono/editor/bindings_generator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/bindings_generator.cpp b/modules/mono/editor/bindings_generator.cpp index e40b17cecb..c0d88553ad 100644 --- a/modules/mono/editor/bindings_generator.cpp +++ b/modules/mono/editor/bindings_generator.cpp @@ -3806,7 +3806,7 @@ void BindingsGenerator::_populate_global_constants() { if (enum_name != StringName()) { EnumInterface ienum(enum_name); - // TODO: ienum.is_flags is always false for core constants since they don't seem to support bitfield enums + ienum.is_flags = CoreConstants::is_global_constant_bitfield(i); List<EnumInterface>::Element *enum_match = global_enums.find(ienum); if (enum_match) { enum_match->get().constants.push_back(iconstant); |