소스 검색

Fix PropertyInfo to use hint/usage default constants

(cherry picked from commit e160966163a4ccf04b531903adc88d9531af309a)
Chris Cranford 1 년 전
부모
커밋
30ebe5fdf9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;
 	StringName name;
 	StringName class_name;
-	uint32_t hint = 0;
+	uint32_t hint = PROPERTY_HINT_NONE;
 	String hint_string;
-	uint32_t usage = 7;
+	uint32_t usage = PROPERTY_USAGE_DEFAULT;
 
 	PropertyInfo() = default;