Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-02-26 14:44:08 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-02-26 14:44:08 +0300
commit17534e28ff44cf3d002e9ca198fd83909814c0f7 (patch)
tree42bcdda833399cc6098ce904641ec4ad515b5862 /source/blender/editors/include/ED_render.h
parente1a541c689b21e4aa759bb497dbcfc45b8220637 (diff)
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
Diffstat (limited to 'source/blender/editors/include/ED_render.h')
-rw-r--r--source/blender/editors/include/ED_render.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_render.h b/source/blender/editors/include/ED_render.h
index a49fe1aa544..ed35b9138f3 100644
--- a/source/blender/editors/include/ED_render.h
+++ b/source/blender/editors/include/ED_render.h
@@ -92,6 +92,7 @@ void ED_preview_shader_job(const struct bContext *C,
int sizey,
int method);
void ED_preview_icon_render(struct Main *bmain,
+ struct Depsgraph *depsgraph,
struct Scene *scene,
struct ID *id,
unsigned int *rect,