Jump to content

is there a Python undo block?


anim

Recommended Posts

is there a possibility to specify undo blocks in my python shelf tool?

or marking the whole shelf button as a single undo step will be sufficient

currently it's not always the case

when I click on my shelf button, then the name of that tool is added to Undo History, when I hit undo, all changes made by my script are correctly undone

but when I ALT-click to my shelf button which is aware of modifier keys through kwargs, nothing is added to Undo history and hitting undo just undos another step leaving changes made by my tool untouched

not sure if this is the bug with modifier keys or not, does anybody have experience with this? or is there a way to define undo blocks manually?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...