Blender Git Loki

Git Commits -> Revision 17534e2

Revision 17534e2 by Sybren A. Stüvel (master)
February 26, 2021, 11:44 (GMT)
Assets: Preview rendering for Action datablocks

Render previews for Action datablocks by rendering the scene camera with
the Workbench (solid) engine. The //look// can be configured by setting
the scene's render engine to Workbench and editing the scene's shading
properties.

It is assumed that the pose has already been applied and that the scene
camera is capturing the pose. In other words, the render function just
renders from the scene camera without evaluating/applying the Action
stored in `preview->id`. The ID is only used to determine its type and
to store the resulting preview.

Not all code paths that lead to the `action_preview_render()` function
actually provide a depsgraph. The "Refresh Asset Preview" button
(`ED_OT_lib_id_generate_preview`) does, but `WM_OT_previews_ensure` does
not.

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D10543

Commit Details:

Full Hash: 17534e28ff44cf3d002e9ca198fd83909814c0f7
Parent Commit: e1a541c
Lines Changed: +90, -11

3 Modified Paths:

/source/blender/editors/include/ED_render.h (+1, -0) (Diff)
/source/blender/editors/interface/interface_icons.c (+7, -2) (Diff)
/source/blender/editors/render/render_preview.c (+82, -9) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021