From 9566e3bc9c6a1c9a3a562738491ab5e7240499ba Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 17 Sep 2021 16:19:49 +0200 Subject: Fix (harmless) mistake in recent new Append code. This code path is not yet used so no harm, but that was a fairly nasty potential crash-generator. --- source/blender/windowmanager/intern/wm_files_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/windowmanager/intern/wm_files_link.c') diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c index 29e34313be5..d0117d9d57a 100644 --- a/source/blender/windowmanager/intern/wm_files_link.c +++ b/source/blender/windowmanager/intern/wm_files_link.c @@ -709,7 +709,7 @@ static void wm_append_do(WMLinkAppendData *lapp_data, break; case WM_APPEND_ACT_REUSE_LOCAL: /* We only need to set `newid` to ID found in previous loop, for proper remapping. */ - ID_NEW_SET(id->newid, item->customdata); + ID_NEW_SET(id, item->customdata); /* This is not a 'new' local appended id, do not set `local_appended_new_id` here. */ break; case WM_APPEND_ACT_UNSET: -- cgit v1.2.3