From 41a3e6c3bd3a4f94a4fbbbb0e2d54c4abc8af76f Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Wed, 16 Oct 2024 09:26:48 +0200 Subject: [PATCH] Fix #125451: Duplicating bone doesn't copy pose bone colors When duplicating a bone (has to be done in edit mode) the pose bone colors were not copied. This adds the code to do just that This also fixes it for symmetrising because that uses the same code path Pull Request: https://projects.blender.org/blender/blender/pulls/129007 --- source/blender/blenkernel/intern/action.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/blender/blenkernel/intern/action.cc b/source/blender/blenkernel/intern/action.cc index 9666d275d28..6c2e7ceba60 100644 --- a/source/blender/blenkernel/intern/action.cc +++ b/source/blender/blenkernel/intern/action.cc @@ -1679,6 +1679,12 @@ void BKE_pose_channel_copy_data(bPoseChannel *pchan, const bPoseChannel *pchan_f copy_v3_v3(pchan->custom_rotation_euler, pchan_from->custom_rotation_euler); pchan->custom_shape_wire_width = pchan_from->custom_shape_wire_width; + pchan->color.palette_index = pchan_from->color.palette_index; + copy_v4_v4_uchar(pchan->color.custom.active, pchan_from->color.custom.active); + copy_v4_v4_uchar(pchan->color.custom.select, pchan_from->color.custom.select); + copy_v4_v4_uchar(pchan->color.custom.solid, pchan_from->color.custom.solid); + pchan->color.custom.flag = pchan_from->color.custom.flag; + pchan->drawflag = pchan_from->drawflag; }