Skip to content

Commit e36a8bf

Browse files
TheAenemaArctis-Fireblight
authored andcommitted
Fixed PropertyInfo Default Usage From Dictionary
1 parent 792ce62 commit e36a8bf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎include/godot_cpp/core/property_info.hpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ struct PropertyInfo {
8080
dict["type"] = type;
8181
dict["hint"] = hint;
8282
dict["hint_string"] = hint_string;
83-
dict["usage"] = usage;
83+
if (usage != PROPERTY_USAGE_NONE) {
84+
dict["usage"] = usage;
85+
}
8486
return dict;
8587
}
8688

0 commit comments

Comments
 (0)