From 68562905147fff5fc3bc4288f3b3c8cfe4e40dc0 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Mon, 30 May 2022 16:33:52 +0200 Subject: Fix T98253: Gpencil Lineart crashes when undoing creation of linked copy These lines were not used now because the handling of copy data has changed. Assigning the `eval` data can produce unexpected result, especially since everywhere ID_RECALC_TRANSFORM is used, we also do a copy on write. That should take care of `ob->data` for the eval object. --- source/blender/blenkernel/intern/object_update.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source/blender/blenkernel/intern/object_update.c') diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c index f41d59c77ba..8ff02c7e698 100644 --- a/source/blender/blenkernel/intern/object_update.c +++ b/source/blender/blenkernel/intern/object_update.c @@ -130,11 +130,6 @@ void BKE_object_eval_transform_final(Depsgraph *depsgraph, Object *ob) else { ob->transflag &= ~OB_NEG_SCALE; } - - /* Assign evaluated version. */ - if ((ob->type == OB_GPENCIL) && (ob->runtime.gpd_eval != NULL)) { - ob->data = ob->runtime.gpd_eval; - } } void BKE_object_handle_data_update(Depsgraph *depsgraph, Scene *scene, Object *ob) -- cgit v1.2.3