remove poll for OBJECT_OT_parent_clear

This works on selected_editable_objects, so no active object mandatory.

After deletion of the active object and using slection tools such as
e.g. box select, the lack of an active object would prevent this
operator from being called without good reason.

Also cannot think of any other existing poll that would really make
sense (Editor type, ...).

ref T68975

Maniphest Tasks: T68975

Differential Revision: https://developer.blender.org/D6773
This commit is contained in:
Philipp Oeser 2020-02-07 12:09:09 +01:00
parent 11df80fc6d
commit 03000549fb
Notes: blender-bot 2023-02-14 01:07:40 +01:00
Referenced by issue #68975, lack of active object after using selection tools blocks menus
1 changed files with 0 additions and 2 deletions

View File

@ -616,8 +616,6 @@ void OBJECT_OT_parent_clear(wmOperatorType *ot)
ot->invoke = WM_menu_invoke;
ot->exec = parent_clear_exec;
ot->poll = ED_operator_object_active_editable;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;