From 5004fac5b657f1b69da6c5cd871b8ff2da7654ad Mon Sep 17 00:00:00 2001 From: TheAenema Date: Tue, 23 Jun 2026 17:45:41 +0330 Subject: [PATCH] Skip 'usage' field in PropertyInfo Dictionary conversion when PROPERTY_USAGE_NONE --- include/godot_cpp/core/property_info.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }