File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
godot-codegen/src/generator Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,11 @@ pub fn make_enum_definition_with(
107107
108108 // Trait implementations.
109109 let engine_trait_impl = make_enum_engine_trait_impl ( enum_, enum_bitmask. as_ref ( ) ) ;
110+ let property_hint = if enum_. is_bitfield {
111+ quote ! { crate :: global:: PropertyHint :: FLAGS }
112+ } else {
113+ quote ! { crate :: global:: PropertyHint :: ENUM }
114+ } ;
110115 let index_enum_impl = make_enum_index_impl ( enum_) ;
111116 let bitwise_impls = make_enum_bitwise_operators ( enum_, enum_bitmask. as_ref ( ) ) ;
112117
@@ -157,7 +162,7 @@ pub fn make_enum_definition_with(
157162
158163 fn var_hint( ) -> crate :: meta:: PropertyHintInfo {
159164 crate :: meta:: PropertyHintInfo {
160- hint: crate :: global :: PropertyHint :: ENUM ,
165+ hint: #property_hint ,
161166 hint_string: #enum_hint_string. into( ) ,
162167 }
163168 }
You can’t perform that action at this time.
0 commit comments