diff options
author | Bastien Montagne <bastien@blender.org> | 2022-09-06 15:57:44 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-09-06 17:23:06 +0300 |
commit | e3afead9aa4677ea91e3c41bbaf814533361cec2 (patch) | |
tree | 48ce083069268c629de573332cc7ffa2f42b1220 /source/blender/blenkernel/intern/texture.c | |
parent | 6f80c60ce658b8877dce9af4544eee1578fac452 (diff) |
Fix (unreported) bad handling of embedded IDs on owner copying.
Completely forgot in rBcd49fee74114 to handle the owner ID copying case
(this code now also needs to re-assign to `owner_id` pointer of the
newly copied embedded IDs to their rightful owner).
Diffstat (limited to 'source/blender/blenkernel/intern/texture.c')
-rw-r--r-- | source/blender/blenkernel/intern/texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c index d9e5887a9a8..8f64296da5a 100644 --- a/source/blender/blenkernel/intern/texture.c +++ b/source/blender/blenkernel/intern/texture.c @@ -96,6 +96,7 @@ static void texture_copy_data(Main *bmain, ID *id_dst, const ID *id_src, const i BKE_id_copy_ex( bmain, (ID *)texture_src->nodetree, (ID **)&texture_dst->nodetree, flag_private_id_data); } + texture_dst->nodetree->owner_id = &texture_dst->id; } if ((flag & LIB_ID_COPY_NO_PREVIEW) == 0) { |