diff --git a/include/godot_cpp/core/property_info.hpp b/include/godot_cpp/core/property_info.hpp index 23da33e31..fe9e21c7f 100644 --- a/include/godot_cpp/core/property_info.hpp +++ b/include/godot_cpp/core/property_info.hpp @@ -78,7 +78,9 @@ struct PropertyInfo { dict["type"] = type; dict["hint"] = hint; dict["hint_string"] = hint_string; - dict["usage"] = usage; + if (usage != PROPERTY_USAGE_NONE) { + dict["usage"] = usage; + } return dict; }