Fix crash with previews of non-IDs, like pose library thumbnails.

This commit is contained in:
Brecht Van Lommel 2018-07-19 16:27:44 +02:00
parent 5037dd8abd
commit ca0ecf4c08
1 changed files with 5 additions and 0 deletions

View File

@ -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) {