Commit: d50f8832e39f79a9a2477ddb2e26dd2c801dbc8f
Author: Campbell Barton
Date:   Thu May 1 06:05:35 2014 +1000
https://developer.blender.org/rBd50f8832e39f79a9a2477ddb2e26dd2c801dbc8f

Fix T39969: Make single user object looses custom-tx-bone

===================================================================

M       source/blender/blenkernel/intern/action.c

===================================================================

diff --git a/source/blender/blenkernel/intern/action.c 
b/source/blender/blenkernel/intern/action.c
index c6fd3c3..3219219 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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to