Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Mizutani <jmztn>2022-07-18 15:47:26 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-07-18 15:47:48 +0300
commit47f3b5375648505f435f21417012ffcd78ddd923 (patch)
tree9fbf970169bcf1a9a585fb333a929dd8ae2655d4
parentc7f788b877cc60a8784c41b5cd5ba85044e1d04f (diff)
Fix T99742: crash when generating rigify rigs, after recent changes
Differential Revision: https://developer.blender.org/D15473
-rw-r--r--source/blender/editors/armature/armature_naming.c2
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);