From 4c3c73ef9c85a85ecc88b5671df50b564f275031 Mon Sep 17 00:00:00 2001 From: Thomas ten Cate Date: Tue, 31 Mar 2020 10:39:23 +0200 Subject: Add missing docs for assert message in GDScript Seems like this was overlooked in PR #31142. See also issue #17082. --- modules/gdscript/gdscript_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/gdscript/gdscript_editor.cpp') diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 98e09159ec..5437f03a04 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -430,6 +430,8 @@ void GDScriptLanguage::get_public_functions(List *p_functions) const mi.name = "assert"; mi.return_val.type = Variant::NIL; mi.arguments.push_back(PropertyInfo(Variant::BOOL, "condition")); + mi.arguments.push_back(PropertyInfo(Variant::STRING, "message")); + mi.default_arguments.push_back(String()); p_functions->push_back(mi); } } -- cgit v1.2.3