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
committerJeroen Bakker <jeroen@blender.org>2020-12-02 10:32:04 +0300
commit8b59119e10211da4f9d1dd2aa95c3132cb65e609 (patch)
tree1bd920c305455cffdb9fba5da461b53fd5ea5ef4
parent19b85c5f4b0e937f231b86a5788cfaea5a27e26f (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 e5dd8373bf7..4a5f3f01ebb 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -4106,8 +4106,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;
}
/*