Bug fix: Changing volume texture properties after render crashes (reported by mats on irc)
* Preview render copied the volume texture, but not the actual volumedata, so normal render and preview render clashed.
This commit is contained in:
@@ -790,7 +790,11 @@ Tex *localize_texture(Tex *tex)
|
||||
if(texn->coba) texn->coba= MEM_dupallocN(texn->coba);
|
||||
if(texn->env) texn->env= BKE_copy_envmap(texn->env);
|
||||
if(texn->pd) texn->pd= MEM_dupallocN(texn->pd);
|
||||
if(texn->vd) texn->vd= MEM_dupallocN(texn->vd);
|
||||
if(texn->vd) {
|
||||
texn->vd= MEM_dupallocN(texn->vd);
|
||||
if(texn->vd->dataset)
|
||||
texn->vd->dataset= MEM_dupallocN(texn->vd->dataset);
|
||||
}
|
||||
|
||||
texn->preview = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user