Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-11-10 09:38:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-11-10 09:44:56 +0300
commit476a0d2311d530d9590cae807ee07fb98b11c6dd (patch)
tree17fde43629a29e223a2b70007d7e7415b862a30b
parentb902edae75c7087d08339fdf03d132341df1f277 (diff)
Fix T82555: Crash using copied object from Python
Also clear `gpd_eval` as this wasn't being copied either.
-rw-r--r--source/blender/blenkernel/intern/object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 398860b6796..971f79e296f 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -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;
}
/**