UI: Dynamic File Browser Tooltips #104547

Merged
Harley Acheson merged 27 commits from Harley/blender:FileTooltips into main 2024-01-03 03:56:23 +01:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 46521f57a1 - Show all commits

View File

@ -190,8 +190,7 @@ static void file_draw_tooltip_custom_func(bContext * /*C*/, struct uiTooltipData
UI_TIP_LC_ALERT);
}
if (file->typeflag & (FILE_TYPE_BLENDER | FILE_TYPE_BLENDER_BACKUP))
{
if (file->typeflag & (FILE_TYPE_BLENDER | FILE_TYPE_BLENDER_BACKUP)) {

Why is this only using _read(), instead of _manage()?

Why is this only using `_read()`, instead of `_manage()`?

In this case I don't want to create a new preview if one doesn't exist. Getting the version from the file is faster.

In this case I don't want to create a new preview if one doesn't exist. Getting the version from the file is faster.
char version_st[128] = {0};
if (!thumb) {
/* Load the thumbnail from cache if existing, but don't create if not. */