mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix error spam from loading script class icons
This commit is contained in:
parent
d006aa0abb
commit
3ed9231117
2 changed files with 10 additions and 7 deletions
|
@ -1877,7 +1877,7 @@ String GDScriptLanguage::get_global_class_name(const String &p_path, String *r_b
|
|||
}
|
||||
}
|
||||
if (r_icon_path) {
|
||||
if (c->icon_path.is_abs_path())
|
||||
if (c->icon_path.empty() || c->icon_path.is_abs_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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue