From f5409e7c3ffa5572ddd725c25cd7e1b03d23498f Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Sun, 29 Aug 2021 20:25:00 -0400 Subject: [PATCH] Fixed String::simplify_path Variant return type --- core/variant_call.cpp | 2 +- doc/classes/String.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/variant_call.cpp b/core/variant_call.cpp index f2deab56e84..195afcd5575 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -1688,7 +1688,7 @@ void register_variant_methods() { ADDFUNC0R(STRING, BOOL, String, empty, varray()); ADDFUNC1R(STRING, STRING, String, humanize_size, INT, "size", varray()); ADDFUNC0R(STRING, BOOL, String, is_abs_path, varray()); - ADDFUNC0R(STRING, BOOL, String, simplify_path, varray()); + ADDFUNC0R(STRING, STRING, String, simplify_path, varray()); ADDFUNC0R(STRING, BOOL, String, is_rel_path, varray()); ADDFUNC0R(STRING, STRING, String, get_base_dir, varray()); ADDFUNC0R(STRING, STRING, String, get_file, varray()); diff --git a/doc/classes/String.xml b/doc/classes/String.xml index 7a9c04c9738..221617e6818 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -667,7 +667,7 @@ - + Returns a simplified canonical path.