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

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;
}
/**