-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EMSUSD-1657 light linking undo and redo
- Added methods on the Host class to create the data used by the UI. - Host create USD collection and string list by default. - Use the Host to create the data in the UI classes. - UsdCollectionData uses Host to create its string lists. - Make the expression widget update itself on USD data changed notification even when there is no expression attribute. - Rename the light linking custom control to be collection custom control. - Move the Maya host class to its own file. - Implement Maya-specific collection data with all needed setters. - Add a _UsdUndoBlockContext class to capture all USD changes into undo items and later transfer them to a Maya command. - Add a _UsdUndoBlockCommand that tarnsfer the captured undo items into itself for future undo and redo. - Add a _UndoItemHolder class to hold the undo items to be transferred between the Python undo context and the Maya command. - Add multiple command sub-classes so that the undo UI shows a nice and comprehensible undo name. In theory, we could have just used the existing UsdUndoBlock and that was in the initial prototype, but this makes all entries in the undo UI all be "UsdUndoBlock" which is incomprehensible for the user and does not state what would be undone or redone. Using one command per action allows the user to know what is in the undo stack.
- Loading branch information
1 parent
058e1ca
commit 931f4da
Showing
9 changed files
with
407 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...rces/ae/usd-shared-components/src/python/usdSharedComponents/usdData/usdCollectionData.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.