fix for [#17448] Duplicating textures with IPOs doesn't increment IPO user count

This commit is contained in:
Campbell Barton 2008-08-07 09:56:31 +00:00
parent 66d6221899
commit a1f46e1e32

@ -545,6 +545,8 @@ Tex *copy_texture(Tex *tex)
if(texn->type==TEX_IMAGE) id_us_plus((ID *)texn->ima);
else texn->ima= 0;
id_us_plus((ID *)texn->ipo);
if(texn->plugin) {
texn->plugin= MEM_dupallocN(texn->plugin);
open_plugin_tex(texn->plugin);