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

Added save / restore to preserve object selection after Undoing Remove SubLayer #3037

Conversation

AramAzhari-adsk
Copy link
Collaborator

Added save / restore to preserve object selection after Undoing Remove SubLayer

@AramAzhari-adsk AramAzhari-adsk added bug Something isn't working adsk Related to Autodesk plugin labels Apr 26, 2023
Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -278,8 +280,44 @@ class InsertRemoveSubPathBase : public BaseCmd
}
}

void saveSelection()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these just a copy/paste of the functions below in the MuteLayer command? If so please refactor them out either into BaseCmd or just helpers in an unnamed namespace. I guess the input to the function will be the proxyShapePath.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was hoping to have another pass as a refactor task and go through all commands in that file and assess which ones need the selection store / restore. I have seen similar code in AL USD so this might be good to go into a global location that can be used from various UI.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@seando-adsk I made a follow up ticket for this request MAYA-129060 . Thank you.

@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Apr 27, 2023
@seando-adsk seando-adsk merged commit 03cc5f3 into dev Apr 27, 2023
@seando-adsk seando-adsk deleted the azharia/MAYA-109678/Fixes-Object-Selection-When-Undoing-A-SubLayer-Remove branch April 27, 2023 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin bug Something isn't working ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants