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
This commit is contained in:
committed by
Christoph Lendenfeld
parent
ccb92947c5
commit
41a3e6c3bd
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user