Skip to content

Commit a5eba2d

Browse files
authored
Merge pull request #2005 from Selciner-Games/master
PropertyInfo: Only include 'usage' in Dictionary conversion when explicitly set
2 parents 7df95d6 + 5004fac commit a5eba2d

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
@@ -78,7 +78,9 @@ struct PropertyInfo {
7878
dict["type"] = type;
7979
dict["hint"] = hint;
8080
dict["hint_string"] = hint_string;
81-
dict["usage"] = usage;
81+
if (usage != PROPERTY_USAGE_NONE) {
82+
dict["usage"] = usage;
83+
}
8284
return dict;
8385
}
8486

0 commit comments

Comments
 (0)