diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-08-22 16:54:51 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-08-22 16:55:02 +0300 |
commit | 54fd8176d7e914da9fc834b465c22bffb6f3a620 (patch) | |
tree | 7c79f39ad5f5dd0ecc344bcacbdd947120f92756 /source/blender/blenkernel/intern/light.c | |
parent | 33a287e5c0508af0fcacca2026a1e89cbbc0d385 (diff) |
NodeTree: also assign the owner pointer when copying.
Diffstat (limited to 'source/blender/blenkernel/intern/light.c')
-rw-r--r-- | source/blender/blenkernel/intern/light.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/light.c b/source/blender/blenkernel/intern/light.c index 75c9e0e42a5..654abef389d 100644 --- a/source/blender/blenkernel/intern/light.c +++ b/source/blender/blenkernel/intern/light.c @@ -113,7 +113,7 @@ void BKE_light_copy_data(Main *bmain, Light *la_dst, const Light *la_src, const if (la_src->nodetree) { /* Note: nodetree is *not* in bmain, however this specific case is handled at lower level * (see BKE_libblock_copy_ex()). */ - BKE_id_copy_ex(bmain, (ID *)la_src->nodetree, (ID **)&la_dst->nodetree, flag); + BKE_nodetree_copy_owned_ex(bmain, la_src->nodetree, &la_dst->nodetree, &la_dst->id, flag); } if ((flag & LIB_ID_COPY_NO_PREVIEW) == 0) { |