Blender Git Commit Log

Git Commits -> Revision 3c2e4f4

Revision 3c2e4f4 by Philipp Oeser (master)
October 25, 2021, 10:58 (GMT)
Fix T91411: Outliner crash using contextmenu operators from a shortcut

Oversight in {rBb0741e1dcbc5}.

This was guarded by an assert in `get_target_element`, but it can be
valid to have these assigned to a shortcut (and then perform the action
without an active outliner element).

Now remove the assert and let the operator polls check if we really have
a target element.

note: this basically makes `get_target_element` obsolete, could call
`outliner_find_element_with_flag` instead in all cases.

Maniphest Tasks: T91411

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

Commit Details:

Full Hash: 3c2e4f4cfd57944244bb80b93539af8a9bb98130
Parent Commit: 06ae3c9
Lines Changed: +29, -26

1 Modified Path:

/source/blender/editors/space_outliner/outliner_tools.c (+29, -26) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021