Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMSUSD-189 fix undo of the stage creation command #3215

Merged
merged 3 commits into from
Jul 12, 2023

Conversation

pierrebai-adsk
Copy link
Collaborator

  • Do not keep reference to temporarily created DAG modifiers.
  • Capture the undo item by using a undo item list and undo recorder.
  • Don't hide potential unrelated exceptions.
  • Add a unit test for the command.

@pierrebai-adsk pierrebai-adsk added bug Something isn't working adsk Related to Autodesk plugin labels Jul 10, 2023
- Do not keep reference to temporarily created DAG modifiers.
- Capture the undo item by using a undo item list and undo recorder.
- Don't hide potential unrelated exceptions.
- Add a unit test for the command.
@seando-adsk
Copy link
Collaborator

@pierrebai-adsk One question I have is during the command if any part of it fails, is everything that was created and/or modified up to that point undone?

@pierrebai-adsk
Copy link
Collaborator Author

Yes, that is what the undo at line 70 (for exceptions) and 74 (for explicit return failure) do.

Copy link
Collaborator

@frohnej-adsk frohnej-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think one comment has to be adjusted. Other than that, it's looking good to me. Thanks!

Co-authored-by: frohnej-adsk <116098583+frohnej-adsk@users.noreply.github.com>
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 11, 2023
@seando-adsk seando-adsk added ufe-usd Related to UFE-USD plugin in Maya-Usd and removed bug Something isn't working adsk Related to Autodesk plugin labels Jul 12, 2023
@seando-adsk seando-adsk merged commit bcbe336 into dev Jul 12, 2023
@seando-adsk seando-adsk deleted the bailp/EMSUSD-189/undo-create-stage branch July 12, 2023 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge ufe-usd Related to UFE-USD plugin in Maya-Usd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants