Fix T82555: Crash using copied object from Python

Also clear `gpd_eval` as this wasn't being copied either.
This commit is contained in:
Campbell Barton 2020-11-10 17:38:26 +11:00
parent b902edae75
commit 476a0d2311
Notes: blender-bot 2023-02-14 00:57:33 +01:00
Referenced by issue #82555, Segfault when applying modifier to object copy from python
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 2 additions and 0 deletions

View File

@ -4249,8 +4249,10 @@ void BKE_object_runtime_reset_on_copy(Object *object, const int UNUSED(flag))
{
Object_Runtime *runtime = &object->runtime;
runtime->data_eval = NULL;
runtime->gpd_eval = NULL;
runtime->mesh_deform_eval = NULL;
runtime->curve_cache = NULL;
runtime->object_as_temp_mesh = NULL;
}
/**