diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-08-07 13:56:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-08-07 13:56:31 +0400 |
commit | a1f46e1e32aca4c02384ee2c63f249548d4fbb1e (patch) | |
tree | 1d657b4cca3d730fd50c5e7bb0b42d4a73ce13e6 /source/blender | |
parent | 66d62218996aafc8ff0a35a94bc71383eeb1c243 (diff) |
fix for [#17448] Duplicating textures with IPOs doesn't increment IPO user count
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/texture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c index da1dcfa6c5b..936381c85cc 100644 --- a/source/blender/blenkernel/intern/texture.c +++ b/source/blender/blenkernel/intern/texture.c @@ -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); |