diff options
author | Jun Mizutani <jmztn> | 2022-07-18 15:47:26 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-07-18 15:47:48 +0300 |
commit | 47f3b5375648505f435f21417012ffcd78ddd923 (patch) | |
tree | 9fbf970169bcf1a9a585fb333a929dd8ae2655d4 /source/blender/editors/armature | |
parent | c7f788b877cc60a8784c41b5cd5ba85044e1d04f (diff) |
Fix T99742: crash when generating rigify rigs, after recent changes
Differential Revision: https://developer.blender.org/D15473
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/armature_naming.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/armature/armature_naming.c b/source/blender/editors/armature/armature_naming.c index 8d5ae6f3654..4f329dbe449 100644 --- a/source/blender/editors/armature/armature_naming.c +++ b/source/blender/editors/armature/armature_naming.c @@ -285,7 +285,7 @@ void ED_armature_bone_rename(Main *bmain, /* fix camera focus */ if (ob->type == OB_CAMERA) { Camera *cam = (Camera *)ob->data; - if (cam->dof.focus_object->data == arm){ + if ((cam->dof.focus_object != NULL) && (cam->dof.focus_object->data == arm)) { if (STREQ(cam->dof.focus_subtarget, oldname)) { BLI_strncpy(cam->dof.focus_subtarget, newname, MAXBONENAME); DEG_id_tag_update(&cam->id, ID_RECALC_COPY_ON_WRITE); |