浏览代码

Merge pull request #71116 from raulsntos/dotnet/core-bitfield-enums

C#: Add `[Flags]` attribute to core bitfield enums
Rémi Verschelde 2 年之前
父节点
当前提交
dfa20725bc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/mono/editor/bindings_generator.cpp

+ 1 - 1
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);