Blender Git Commit Log

Git Commits -> Revision 7a57a5e

August 16, 2021, 04:19 (GMT)
Fix NLA action cannot be unlinked in certain cases

The poll for unlinking calls `nla_panel_context` without providing an
adt pointer, and there is a check for this pointer in
`nla_panel_context` leading to never returning true if it is not
provided. (this is fine if there are tracks already, poll would succeed
in this case, `nla_panel_context` goes a different code path then)

Same call to `nla_panel_context` is also done in the beginning of the
corresponding unlink exec function (but this time providing the pointer
because it is used later), so it makes sense to do the same thing in the
poll function. Equal check is also done in the panel poll function, so
now these are all in sync.

Part of T87681.

Maniphest Tasks: T87681

Differential Revision: https://developer.blender.org/D11041

Commit Details:

Full Hash: 7a57a5ed29360f7b91e7a1adc34bf13531d2f3c2
Parent Commit: 81ce3fa
Committed By: YimingWu
Lines Changed: +2, -1

1 Modified Path:

/source/blender/editors/space_nla/nla_channels.c (+2, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021