Fix T82555: Crash using copied object from Python
Also clear `gpd_eval` as this wasn't being copied either.
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue