diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-08-16 05:02:26 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-08-16 05:02:26 +0400 |
commit | a67562e73cbc2f4a9641fbc4d1147b4b2cc935c4 (patch) | |
tree | 0e8feafbfcaff9c52eb8538bcc62a605092d5b24 /source/blender/blenkernel/intern/anim_sys.c | |
parent | a458de88b65c5fcb0f11c005c040163d3cf76cec (diff) |
Bugfix [#28267] keyframed values for shapekeys of copied objects are
linked
Shapekey actions weren't getting copied when their owner data was.
This was due to the IMO totally convoluted way in which the duplicate
action flags have been set up:
- the function to copy animdata takes a param to specify whether
actions are copied or not, but this is never touched (i.e. this always
just gets FALSE passed in)
- instead, we jump around in hoops later figuring out whether the
userpref wants copying to occur, then fixing up the links
IIRC, part of this may be due to a desire/need to not duplicate
actions when dealing with NodeTree copies for multi-threaded
rendering, but at the expense of complicating everything else.
Diffstat (limited to 'source/blender/blenkernel/intern/anim_sys.c')
-rw-r--r-- | source/blender/blenkernel/intern/anim_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c index 1c4746b1828..3c6daf8b39d 100644 --- a/source/blender/blenkernel/intern/anim_sys.c +++ b/source/blender/blenkernel/intern/anim_sys.c @@ -287,7 +287,7 @@ int BKE_copy_animdata_id (ID *id_to, ID *id_from, const short do_action) return 1; } -void BKE_copy_animdata_id_action(struct ID *id) +void BKE_copy_animdata_id_action(ID *id) { AnimData *adt= BKE_animdata_from_id(id); if (adt) { |