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:
authorCampbell Barton <ideasman42@gmail.com>2021-04-28 06:26:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-04-28 06:36:10 +0300
commit28828e0041f8d292723796bc3787bd1b3d372a95 (patch)
treebd30b9881c911d4f136f133b74346c9c81b33057
parent2bf3a960bd2bf2105083b02b757ef2f58336fcb9 (diff)
Add NULL check to Object.pose from 6eb2f71875c69f5f6073fed2d285fe8ef662ba03
-rw-r--r--source/blender/editors/object/object_edit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c
index 196b330179b..07c8e7725e3 100644
--- a/source/blender/editors/object/object_edit.c
+++ b/source/blender/editors/object/object_edit.c
@@ -583,7 +583,9 @@ static bool ED_object_editmode_load_free_ex(Main *bmain,
if (load_data == false) {
/* Don't keep unused pose channels created by duplicating bones
* which may have been deleted/undone, see: T87631. */
- BKE_pose_channels_clear_with_null_bone(obedit->pose, true);
+ if (obedit->pose != NULL) {
+ BKE_pose_channels_clear_with_null_bone(obedit->pose, true);
+ }
}
}
/* TODO(sergey): Pose channels might have been changed, so need