From a84c823b891fcf440e134eb284024ea06aa1a9ff Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 17 Dec 2018 12:28:16 +0100 Subject: Fix T58652: Crash editing shape keys weirdness with instances This is a second attempt to get the crash fixed. The original fix worked, but it was reverted by d3e0d7f0825. Now the logic goes as: - All pointers which we can not have shared (the ones which are owned by the runtime) are cleared. - The rest of runtime stays untouched. This seems to be enough to keep particles happy. --- source/blender/modifiers/intern/MOD_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/modifiers') diff --git a/source/blender/modifiers/intern/MOD_util.c b/source/blender/modifiers/intern/MOD_util.c index 63dfacf391f..dca2d536a5d 100644 --- a/source/blender/modifiers/intern/MOD_util.c +++ b/source/blender/modifiers/intern/MOD_util.c @@ -198,8 +198,7 @@ Mesh *MOD_deform_mesh_eval_get( LIB_ID_CREATE_NO_USER_REFCOUNT | LIB_ID_CREATE_NO_DEG_TAG | LIB_ID_COPY_NO_PREVIEW | - LIB_ID_COPY_CD_REFERENCE | - LIB_ID_COPY_RUNTIME), + LIB_ID_COPY_CD_REFERENCE), false); mesh->runtime.deformed_only = 1; } -- cgit v1.2.3