From a64137d5dd0eb1eca3364a31bdc1b5b8d0ebd8ff Mon Sep 17 00:00:00 2001 From: David Snopek Date: Wed, 26 Apr 2023 16:32:03 -0500 Subject: Dump API docs from inline GDScript comments using --doctool --gdscript-docs PATH --- core/doc_data.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core/doc_data.cpp') diff --git a/core/doc_data.cpp b/core/doc_data.cpp index 5e09e560d5..2d909f5335 100644 --- a/core/doc_data.cpp +++ b/core/doc_data.cpp @@ -165,6 +165,7 @@ void DocData::method_doc_from_methodinfo(DocData::MethodDoc &p_method, const Met void DocData::constant_doc_from_variant(DocData::ConstantDoc &p_const, const StringName &p_name, const Variant &p_value, const String &p_desc) { p_const.name = p_name; p_const.value = p_value; + p_const.is_value_valid = (p_value.get_type() != Variant::OBJECT); p_const.description = p_desc; } -- cgit v1.2.3