mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #24939 from Rubonnek/null-editor-icon-fix
Fixed null editor icon crash
This commit is contained in:
commit
c6b587636b
@ -119,9 +119,10 @@ void EditorPath::_notification(int p_what) {
|
|||||||
|
|
||||||
Ref<Texture> icon = EditorNode::get_singleton()->get_object_icon(obj);
|
Ref<Texture> icon = EditorNode::get_singleton()->get_object_icon(obj);
|
||||||
|
|
||||||
icon->draw(ci, Point2i(ofs, (size.height - icon->get_height()) / 2));
|
if (icon.is_valid()) {
|
||||||
|
icon->draw(ci, Point2i(ofs, (size.height - icon->get_height()) / 2));
|
||||||
ofs += icon->get_width();
|
ofs += icon->get_width();
|
||||||
|
}
|
||||||
|
|
||||||
if (i == history->get_path_size() - 1) {
|
if (i == history->get_path_size() - 1) {
|
||||||
//add name
|
//add name
|
||||||
|
Loading…
Reference in New Issue
Block a user