C#: Add [Flags] attribute to core bitfield enums

This commit is contained in:
Raul Santos 2023-01-09 16:13:28 +01:00
parent 964fc6e15d
commit 59e8fc1edf
No known key found for this signature in database
GPG key ID: B532473AE3A803E4

View file

@ -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);