From 953aaf1daec030d2de1267d765aa5af19453abb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 16 Jun 2025 12:10:47 +0200 Subject: [PATCH] Fix: Pose Inbetweener crashes when bones have custom properties Fix a crash in the inbetweener (and other similar tools) when bones have custom properties, but no system properties. It just needed another `nullptr` check. Pull Request: https://projects.blender.org/blender/blender/pulls/140455 --- source/blender/editors/armature/pose_utils.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source/blender/editors/armature/pose_utils.cc b/source/blender/editors/armature/pose_utils.cc index f95e0bac54b..554abe5a065 100644 --- a/source/blender/editors/armature/pose_utils.cc +++ b/source/blender/editors/armature/pose_utils.cc @@ -224,9 +224,13 @@ static void fcurves_to_pchan_links_get(ListBase &pfLinks, Object &ob, bPoseChann copy_v3_v3(pfl->scale_out, pchan.scale_out); /* Make copy of custom properties. */ - if (pchan.prop && (transFlags & ACT_TRANS_PROP)) { - pfl->oldprops = IDP_CopyProperty(pchan.prop); - pfl->old_system_properties = IDP_CopyProperty(pchan.system_properties); + if (transFlags & ACT_TRANS_PROP) { + if (pchan.prop) { + pfl->oldprops = IDP_CopyProperty(pchan.prop); + } + if (pchan.system_properties) { + pfl->old_system_properties = IDP_CopyProperty(pchan.system_properties); + } } }