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:
Janne Karhu
2011-03-16 14:21:35 +00:00
parent 8b9615caa0
commit 6e4be608ff

View File

@@ -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;