diff options
Diffstat (limited to 'source/blender/blenkernel/intern/curve.c')
-rw-r--r-- | source/blender/blenkernel/intern/curve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index 6322570d562..9f83ffa2577 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -222,7 +222,7 @@ Curve *BKE_curve_copy(Curve *cu) cun->bb = MEM_dupallocN(cu->bb); cun->key = BKE_key_copy(cu->key); - if (cun->key) cun->key->from = (ID *)cun; + BKE_key_set_from_id(cun->key, (ID *)cun); cun->editnurb = NULL; cun->editfont = NULL; |