1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #49279 from Calinou/rename-string-is-abs-path-method

Rename `String.is_abs_path()` to `String.is_absolute_path()`
This commit is contained in:
Rémi Verschelde
2021-06-11 15:58:16 +02:00
committed by GitHub
17 changed files with 27 additions and 27 deletions

View File

@@ -2064,7 +2064,7 @@ String GDScriptLanguage::get_global_class_name(const String &p_path, String *r_b
if (err == OK) {
const GDScriptParser::ClassNode *c = parser.get_tree();
if (r_icon_path) {
if (c->icon_path.is_empty() || c->icon_path.is_abs_path()) {
if (c->icon_path.is_empty() || c->icon_path.is_absolute_path()) {
*r_icon_path = c->icon_path;
} else if (c->icon_path.is_rel_path()) {
*r_icon_path = p_path.get_base_dir().plus_file(c->icon_path).simplify_path();