Fix [#22005] Duplicated Point Density textures remain somewhat linked
authorMatt Ebb <matt@mke3.net>
Wed, 14 Apr 2010 07:47:04 +0000 (07:47 +0000)
committerMatt Ebb <matt@mke3.net>
Wed, 14 Apr 2010 07:47:04 +0000 (07:47 +0000)
source/blender/blenkernel/intern/texture.c

index 48f819a70916307ddf9c2913f352d212437780db..c13e48e8f0179f7769ff1596cbb4c2ca14d82b87 100644 (file)
@@ -620,6 +620,8 @@ Tex *copy_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(tex->preview) texn->preview = BKE_previewimg_copy(tex->preview);