Browse Source

Merge pull request #1440 from Naros/propertyinfo-wrong-usage-init-value

Fix PropertyInfo to use hint/usage default constants
David Snopek 1 year ago
parent
commit
ad307e4b9c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/godot_cpp/core/property_info.hpp

+ 2 - 2
include/godot_cpp/core/property_info.hpp

@@ -47,9 +47,9 @@ struct PropertyInfo {
 	Variant::Type type = Variant::NIL;
 	Variant::Type type = Variant::NIL;
 	StringName name;
 	StringName name;
 	StringName class_name;
 	StringName class_name;
-	uint32_t hint = 0;
+	uint32_t hint = PROPERTY_HINT_NONE;
 	String hint_string;
 	String hint_string;
-	uint32_t usage = 7;
+	uint32_t usage = PROPERTY_USAGE_DEFAULT;
 
 
 	PropertyInfo() = default;
 	PropertyInfo() = default;