mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Make script_class_get_icon_path() return any value when r_valid is passed.
This commit is contained in:
parent
ce94b26de7
commit
1ec1ba6d94
1 changed files with 5 additions and 3 deletions
|
@ -1024,10 +1024,12 @@ String EditorData::script_class_get_icon_path(const String &p_class, bool *r_val
|
|||
}
|
||||
HashMap<StringName, String>::ConstIterator E = _script_class_icon_paths.find(current);
|
||||
if ((bool)E) {
|
||||
if (r_valid && !E->value.is_empty()) {
|
||||
*r_valid = true;
|
||||
}
|
||||
if (r_valid) {
|
||||
*r_valid = !E->value.is_empty();
|
||||
return E->value;
|
||||
} else if (!E->value.is_empty()) {
|
||||
return E->value;
|
||||
}
|
||||
}
|
||||
current = ScriptServer::get_global_class_base(current);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue