Page MenuHome

Add EDBM_selectmode_disable_multi and use in knifeproject

Authored by Philipp Oeser (lichtwerk) on Wed, Nov 27, 3:23 PM.



As a followup to rB6f4e595e9ba9 and as per @Campbell Barton (campbellbarton) suggestion,
this adds EDBM_selectmode_disable_multi, similar to
EDBM_mesh_deselect_all_multi & EDBM_mesh_deselect_all, so other similar
uses don't need to be done in a loop.

Also, selected_objects isn't a reliable way to handle this case - since
objects can be in edit-mode & not selected.

Diff Detail

rB Blender

Event Timeline

Campbell Barton (campbellbarton) requested changes to this revision.Wed, Nov 27, 3:27 PM
Campbell Barton (campbellbarton) added inline comments.

In this case it's best not to pass in the v3d at all (can be left NULL).

Since we don't want some objects not changing modes just because the current local-view doesn't show them.

This revision now requires changes to proceed.Wed, Nov 27, 3:27 PM

dont take local view into account

This revision is now accepted and ready to land.Wed, Nov 27, 3:42 PM