Fix assert for Image & Brush icon preview

This commit is contained in:
Clément Foucault 2018-07-20 12:54:57 +02:00
parent a185bf3b85
commit 244b825ccd
1 changed files with 4 additions and 0 deletions

View File

@ -334,6 +334,10 @@ static ID *duplicate_ids(ID *id, Depsgraph *depsgraph)
return (ID *)BKE_lamp_localize((Lamp *)id_eval);
case ID_WO:
return (ID *)BKE_world_localize((World *)id_eval);
case ID_IM:
case ID_BR:
case ID_SCR:
return NULL;
default:
BLI_assert(!"ID type preview not supported.");
return NULL;