parent
2515ff5577
commit
72522596a9
@ -2101,7 +2101,9 @@ void PropertyEditor::set_item_text(TreeItem *p_item, int p_type, const String &p
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!res->is_type("Texture")) {
|
if (res->is_type("Script")) {
|
||||||
|
p_item->set_text(1, res->get_path().get_file());
|
||||||
|
} else if (!res->is_type("Texture")) {
|
||||||
//texture already previews via itself
|
//texture already previews via itself
|
||||||
EditorResourcePreview::get_singleton()->queue_edited_resource_preview(res, this, "_resource_preview_done", p_item->get_instance_ID());
|
EditorResourcePreview::get_singleton()->queue_edited_resource_preview(res, this, "_resource_preview_done", p_item->get_instance_ID());
|
||||||
}
|
}
|
||||||
@ -3229,7 +3231,9 @@ void PropertyEditor::update_tree() {
|
|||||||
} else if (res.is_valid()) {
|
} else if (res.is_valid()) {
|
||||||
item->set_tooltip(1, res->get_name() + " (" + res->get_type() + ")");
|
item->set_tooltip(1, res->get_name() + " (" + res->get_type() + ")");
|
||||||
}
|
}
|
||||||
if (!res->is_type("Texture")) {
|
if (res->is_type("Script")) {
|
||||||
|
item->set_text(1, res->get_path().get_file());
|
||||||
|
} else if (!res->is_type("Texture")) {
|
||||||
//texture already previews via itself
|
//texture already previews via itself
|
||||||
EditorResourcePreview::get_singleton()->queue_edited_resource_preview(res, this, "_resource_preview_done", item->get_instance_ID());
|
EditorResourcePreview::get_singleton()->queue_edited_resource_preview(res, this, "_resource_preview_done", item->get_instance_ID());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user