Refactor: combine insert_keyframe() and insert_key_rna() into a single function #122053
@ -168,6 +168,7 @@ const std::optional<StringRefNull> default_channel_group_for_path(
|
||||
{
|
||||
if (animated_struct->type == &RNA_PoseBone) {
|
||||
bPoseChannel *pose_channel = static_cast<bPoseChannel *>(animated_struct->data);
|
||||
BLI_assert(pose_channel->name != nullptr);
|
||||
return pose_channel->name;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user