Page MenuHome

remove poll for OBJECT_OT_parent_clear

Authored by Philipp Oeser (lichtwerk) on Feb 7 2020, 12:10 PM.



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

Diff Detail

rB Blender
parent_clear_remove_poll (branched from master)
Build Status
Buildable 6525
Build 6525: arc lint + arc unit

Event Timeline

LGTM. The ticket is doesn't mention other cases. There will be, but not sure we want to spend dev-time on finding all the cases.

This revision is now accepted and ready to land.Feb 7 2020, 2:54 PM
This revision was automatically updated to reflect the committed changes.