Volumes: copy display settings in BKE_volume_new_for_eval

This commit is contained in:
Jacques Lucke 2020-10-01 15:42:11 +02:00
parent f79b4850fb
commit 5e6459ac1c
1 changed files with 2 additions and 0 deletions

View File

@ -1269,6 +1269,8 @@ Volume *BKE_volume_new_for_eval(const Volume *volume_src)
STRNCPY(volume_dst->id.name, volume_src->id.name);
volume_dst->mat = (Material **)MEM_dupallocN(volume_src->mat);
volume_dst->totcol = volume_src->totcol;
volume_dst->render = volume_src->render;
volume_dst->display = volume_src->display;
BKE_volume_init_grids(volume_dst);
return volume_dst;