From e3afead9aa4677ea91e3c41bbaf814533361cec2 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 6 Sep 2022 14:57:44 +0200 Subject: 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). --- source/blender/blenkernel/intern/linestyle.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/intern/linestyle.c') diff --git a/source/blender/blenkernel/intern/linestyle.c b/source/blender/blenkernel/intern/linestyle.c index 776fe06edf7..64dc48c0154 100644 --- a/source/blender/blenkernel/intern/linestyle.c +++ b/source/blender/blenkernel/intern/linestyle.c @@ -72,6 +72,7 @@ static void linestyle_copy_data(Main *bmain, ID *id_dst, const ID *id_src, const (ID *)linestyle_src->nodetree, (ID **)&linestyle_dst->nodetree, flag_private_id_data); + linestyle_dst->nodetree->owner_id = &linestyle_dst->id; } LineStyleModifier *linestyle_modifier; -- cgit v1.2.3