📋 Metadata
- Author: roaoao
- Date: 2020-03-10 12:11:51
- Type:
answer - Reply to: post_03064
💬 Content
Hi, @dpdp
Try to add two more slots:
On Invoke:
import bmesh; bm = bmesh.from_edit_mesh(C.object.data)
On Update:
bpy.ops.ed.undo() if len(bm.select_history) == 0 else None
These 2 slots should undo Select Prev Element command if there is no selection. Didn’t test the code though. Let me know if it doesn’t work.
❤️ 2 likes