mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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.
This commit is contained in:
parent
3dc36b32a1
commit
69cea4fce1
1 changed files with 1 additions and 1 deletions
|
|
@ -1160,7 +1160,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue