diff --git a/include/godot_cpp/core/property_info.hpp b/include/godot_cpp/core/property_info.hpp index 9856025..a9dd6f1 100644 --- a/include/godot_cpp/core/property_info.hpp +++ b/include/godot_cpp/core/property_info.hpp @@ -80,7 +80,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; }