Skip to content

Commit 7f79fac

Browse files
committed
Change the default PropertyUsageFlags for var fields
PROPERTY_USAGE_NO_EDITOR still writes the property to files, which doesn't match the default property for vars in GDScript. PROPERTY_USAGE_NONE indicates that the property should not be saved or shown in the editor.
1 parent 0028a86 commit 7f79fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-macros/src/class/data_models/property.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub fn make_property_impl(class_name: &Ident, fields: &Fields) -> TokenStream {
8989

9090
let usage_flags = match usage_flags {
9191
UsageFlags::Inferred => {
92-
quote! { ::godot::engine::global::PropertyUsageFlags::PROPERTY_USAGE_NO_EDITOR }
92+
quote! { ::godot::engine::global::PropertyUsageFlags::PROPERTY_USAGE_NONE }
9393
}
9494
UsageFlags::InferredExport => {
9595
quote! { ::godot::engine::global::PropertyUsageFlags::PROPERTY_USAGE_DEFAULT }

0 commit comments

Comments
 (0)