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.
This commit is contained in:
Antonio Vazquez
2022-05-30 16:33:52 +02:00
parent de610d06a6
commit 6856290514

View File

@@ -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)