From d6ef2e972dcb888f38a04b31affe86287cf45978 Mon Sep 17 00:00:00 2001 From: TheAenema Date: Mon, 2 Feb 2026 09:12:16 +0330 Subject: [PATCH] Fixed PropertyInfo Default Usage From Dictionary --- 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 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; }