-
Notifications
You must be signed in to change notification settings - Fork 202
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
MAYA-129538 move commands out of context op implementation #3179
MAYA-129538 move commands out of context op implementation #3179
Conversation
Move the commands that implement the menu items in their own file as reusable UFE commands. - Fix undo of add reference and payload that were adding a delete to the prim lists instead of reverting the addition. - Wrap all move commands in Python - Add unit test for all commands that were moved into their own file. - Chang all commands to use UsdUndoableItem and UsdUndoBlock to ensure perfect undo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall great work. This will make moving ContextOps to UsdUfe easier. Just a few minor changes requested.
//! \brief Create a working Material and select it: | ||
class InsertChildAndSelectCommand : public Ufe::CompositeUndoableCommand |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason this command wasn't moved to a separate file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seemed a very specific combination of two commands for the context menu. I could move it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The explanation makes sense. If its not reusable then leave it in ContextOps
- Fix copyright years, - Fix header inclusion guards to not use pragma once. - Move implementation of a function to its own file. - Put the common text filtering test helper in the usdUtils file. - Modify tests to use the common function.
Sean is in vacation and I addressed all his comments
In UFE v2, the insert-child command is declared in the hiearchy.h header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great thanks.
Move the commands that implement the menu items in their own file as reusable UFE commands.