Asset browser doesn't update previews #92593
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#92593
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux-5.11.0-38-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 470.74
Blender Version
Broken: version: 3.0.0 Beta, branch: master, commit date: 2021-10-27 22:07, hash:
b838eaf2b9
Worked: (newest version of Blender that worked as expected)
Short description of error
Asset browser doesn't update previews of modified objects. Even when I remark item as asset again - asset browser use previously cached image not a new.
Exact steps for others to reproduce the error
Create cube - mark as asset and save file - modify dramatically mesh - save again - refresh asset browser - click Clear Asset on your mesh in outliner - click Mark Asset. Take a look that preview of object incorrect in Asset Browser.
Screencast-2021-10-29_03.07.03.mp4
Added subscriber: @viadvena
Added subscriber: @PratikPB2123
Hi, thanks for the report. Can you update the preview from Sidebar? ({nav sidebar > Preview > Generate Preview})
(Not sure if this is a bug but I think
Refresh
should update the preview.)Added subscriber: @deadpin
There's a few things here:
The "Refresh" operator only does what the tooltip says "Refresh the file list". It will not re-generate the previews for all the assets.
Yes, using the "Generate Preview" operator is the proper way to refresh a particular asset's preview after each modification etc.
However, the video shows that if you clear the asset, and then re-mark as an asset, the preview is not correct. I think this is a bug. Clearing an asset should remove all prior asset data associated with it.
Added subscriber: @iss
This has been discussed in #90205, Though here it is bit different case in that you are clearing an asset and then making new one. Will check what should happen
Changed status from 'Needs Triage' to: 'Confirmed'
Currently preview is not cleared when asset is cleared, but I don't see whether this is intentional. This should be possible and easy to do, so will confirm, but I am not fully aware of storage access restrictions.
Hi. Yes, it works from there. But it's definitely should be automatic after repeated "mark as assets" how @deadpin has noticed .
Added subscriber: @JulianEisel
That is correct. Refreshing previews is expensive and would take a while when executed on an entire asset library. So users have to manually do it on individual assets.
The tooltip for the refresh operator wasn't too clear about what it's doing, so I committed {dcdbaf89bd11}.
Right.
It's not really intuitive, but technically the preview is not part of the asset meta-data, it is stored as part of the data-block (e.g. the object) itself. This way even objects that are not assets can have a preview image. But still, when calling Mark as Asset, the preview should be re-rendered IMO. Currently, this isn't done because the object's preview isn't marked as changed (which is done via the depsgraph for materials and some other data-blocks), so the preview rendering skips the re-rendering. After a quick check with Sybren, we decided it's better to always force a re-render on Mark as Asset.
This issue was referenced by
d5e343be27
Changed status from 'Confirmed' to: 'Resolved'