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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-01-12 01:13:29 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-01-12 01:16:27 +0300
commit47be4e9a337931f38e7b3ef903df3592ed239b0d (patch)
tree6c65f1f4826cccb69784cdd97bec070c33080b8a /source/blender/blenkernel/intern/key.c
parentb56b41d51f29e6c24b377cb883767a1c3468497e (diff)
Fix T60401: Shape key's from pointer being set to evaluated CoW ID.
Not sure exactly why this happened for 'apply as shape' and not in other cases (did not took time to fully trace what happens there). But in any case, `BKE_key_evaluate_object_ex()` can be called from a fair amount of places, including during depsgraph evaluation, so setting back key's owner here is plain wrong in CoW era.
Diffstat (limited to 'source/blender/blenkernel/intern/key.c')
-rw-r--r--source/blender/blenkernel/intern/key.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c
index dce748e3ea3..85903e1dfe6 100644
--- a/source/blender/blenkernel/intern/key.c
+++ b/source/blender/blenkernel/intern/key.c
@@ -1333,9 +1333,6 @@ float *BKE_key_evaluate_object_ex(
out = (char *)arr;
}
- /* prevent python from screwing this up? anyhoo, the from pointer could be dropped */
- key->from = (ID *)ob->data;
-
if (ob->shapeflag & OB_SHAPE_LOCK) {
/* shape locked, copy the locked shape instead of blending */
KeyBlock *kb = BLI_findlink(&key->block, ob->shapenr - 1);