diff options
author | Julian Eisel <julian@blender.org> | 2021-11-22 22:00:47 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-11-22 23:12:36 +0300 |
commit | 34615cd269a6cd26cacbab3f10a7298fd577721d (patch) | |
tree | a5f3e7965b7557ce7229819155d9eac03a72f553 /source/blender/editors/include/ED_render.h | |
parent | e2b736aa406e3e87a839d2f96ac9a1718ec253e3 (diff) |
Fix grayed out preview generation button for light objects
Mistake in e7bea3fb6ed0.
We should only skip preview generation for objects that don't support
preview rendering, not completely forbid accessing preview data of such
IDs.
Diffstat (limited to 'source/blender/editors/include/ED_render.h')
-rw-r--r-- | source/blender/editors/include/ED_render.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_render.h b/source/blender/editors/include/ED_render.h index 5cdcbbab42a..2d042b8b0e3 100644 --- a/source/blender/editors/include/ED_render.h +++ b/source/blender/editors/include/ED_render.h @@ -82,6 +82,8 @@ typedef enum ePreviewRenderMethod { void ED_preview_ensure_dbase(void); void ED_preview_free_dbase(void); +bool ED_preview_id_is_supported(const struct ID *id); + void ED_preview_shader_job(const struct bContext *C, void *owner, struct ID *id, |