Skip to content

Commit ad307e4

Browse files
authored
Merge pull request #1440 from Naros/propertyinfo-wrong-usage-init-value
Fix PropertyInfo to use hint/usage default constants
2 parents 6873658 + e160966 commit ad307e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/godot_cpp/core/property_info.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ struct PropertyInfo {
4747
Variant::Type type = Variant::NIL;
4848
StringName name;
4949
StringName class_name;
50-
uint32_t hint = 0;
50+
uint32_t hint = PROPERTY_HINT_NONE;
5151
String hint_string;
52-
uint32_t usage = 7;
52+
uint32_t usage = PROPERTY_USAGE_DEFAULT;
5353

5454
PropertyInfo() = default;
5555

0 commit comments

Comments
 (0)