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>2014-05-01 00:05:35 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-01 00:07:21 +0400
commitd50f8832e39f79a9a2477ddb2e26dd2c801dbc8f (patch)
tree02c96f3cf612ae758b2f4e8a725e7a3f9341c6ad /source/blender/blenkernel/intern/action.c
parent3d5ab5a4960241adea9ccc4fb2f8d2e4ba89c639 (diff)
Fix T39969: Make single user object looses custom-tx-bone
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r--source/blender/blenkernel/intern/action.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c
index c6fd3c30657..3219219bee5 100644
--- a/source/blender/blenkernel/intern/action.c
+++ b/source/blender/blenkernel/intern/action.c
@@ -600,6 +600,11 @@ void BKE_pose_copy_data(bPose **dst, bPose *src, const bool copy_constraints)
id_us_plus(&pchan->custom->id);
}
+ /* warning, O(n2) here, but it's a rarely used feature. */
+ if (pchan->custom_tx) {
+ pchan->custom_tx = BKE_pose_channel_find_name(outPose, pchan->custom_tx->name);
+ }
+
if (copy_constraints) {
BKE_constraints_copy(&listb, &pchan->constraints, true); // BKE_constraints_copy NULLs listb
pchan->constraints = listb;