diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-19 17:27:44 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-19 17:31:15 +0300 |
commit | ca0ecf4c08681753b640482c03dfb3239a37157e (patch) | |
tree | 06de6b13126b4774c83e22bb7bfbef02d4f10a2f /source | |
parent | 5037dd8abdf9335e998141336d4e15f81580c491 (diff) |
Fix crash with previews of non-IDs, like pose library thumbnails.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/render/render_preview.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/render/render_preview.c b/source/blender/editors/render/render_preview.c index 450897382dd..884e8d6625b 100644 --- a/source/blender/editors/render/render_preview.c +++ b/source/blender/editors/render/render_preview.c @@ -314,6 +314,11 @@ static World *preview_get_localized_world(ShaderPreview *sp, World *world) static ID *duplicate_ids(ID *id, Depsgraph *depsgraph) { + if (id == NULL) { + /* Non-ID preview render. */ + return NULL; + } + ID *id_eval = id; if (depsgraph) { |