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:
authorPratik Borhade <PratikPB2123>2022-03-22 14:03:53 +0300
committerBastien Montagne <bastien@blender.org>2022-03-22 14:04:41 +0300
commit913b6b9ec1b1f3cf83b21956b06e2f6d3341c78c (patch)
treeba39615fe7affad4983d54bcafcc88f77406efa6 /source/blender/editors/animation
parent3b745f3455c30f73a26f6c67f52f6a148bf98ca7 (diff)
Fix T96624: NLA crash when reordering tracks if no object is selected.
Caused by rBc0bd240ad0a1. To avoid crash, make boolean value false if active object data is NULL. Should be backported to 2.93 LTS and 3.1 corrective releases.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/anim_channels_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c
index df418b204f9..08379be36fa 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -1131,7 +1131,7 @@ static void rearrange_nla_channels(bAnimContext *ac, AnimData *adt, eRearrangeAn
{
AnimChanRearrangeFp rearrange_func;
ListBase anim_data_visible = {NULL, NULL};
- const bool is_liboverride = ID_IS_OVERRIDE_LIBRARY(ac->obact);
+ const bool is_liboverride = (ac->obact != NULL) ? ID_IS_OVERRIDE_LIBRARY(ac->obact) : false;
/* hack: invert mode so that functions will work in right order */
mode *= -1;