Repository navigation
LOOKDEVX-6063 - Move 'Unassign Material' and 'Add new Material' to UsdContextOps - #4869
Open
couetj-adsk wants to merge 1 commit into
Open
couetj-adsk wants to merge 1 commit into
couetj-adsk wants to merge 1 commit into
Conversation
couetj-adsk
commented
Nov 23, 2026
couetj-adsk
commented
Nov 23, 2026
| } | ||
| #ifdef UFE_V4_FEATURES_AVAILABLE | ||
| } else if (itemPath[0] == kAddNewMaterialItem) { | ||
| addNewMaterialItems(itemPath, items); |
Collaborator
Author
There was a problem hiding this comment.
couetj-adsk
commented
Nov 23, 2026
| items.emplace_back(Ufe::ContextItem::kSeparator); | ||
| materialSeparatorsAdded = true; | ||
| } | ||
| items.emplace_back( |
Collaborator
Author
There was a problem hiding this comment.
| #ifdef UFE_V4_FEATURES_AVAILABLE | ||
| } else if (itemPath.size() == 3u && itemPath[0] == kAddNewMaterialItem) { | ||
| return std::make_shared<UsdUfe::UsdUndoInsertChildAndSelectCommand>( | ||
| UsdUfe::UsdUndoAddNewMaterialCommand::create(_item, itemPath[2])); |
Collaborator
Author
There was a problem hiding this comment.
| items.emplace_back(Ufe::ContextItem::kSeparator); | ||
| materialSeparatorsAdded = true; | ||
| } | ||
| items.emplace_back( |
Collaborator
Author
There was a problem hiding this comment.
| } else if (itemPath[0] == UsdMxUpgradeStageCmd::kCommandString) { | ||
| return UsdMxUpgradeStageCmd::create(path()); | ||
| #endif | ||
| } else if (itemPath[0] == UsdUfe::UnbindMaterialUndoableCommand::commandName) { |
Collaborator
Author
There was a problem hiding this comment.
couetj-adsk
commented
Nov 23, 2026
| } | ||
| } | ||
| #endif | ||
| items.emplace_back( |
Collaborator
Author
There was a problem hiding this comment.
frohnej-adsk
previously approved these changes
Nov 24, 2026
frohnej-adsk
previously approved these changes
Nov 27, 2026
frohnej-adsk
approved these changes
Nov 27, 2026
…ssign Material to Selection' into UsdContextOps
couetj-adsk
force-pushed
the
couetj/LOOKDEVX-6063/move-unassign-and-addnew-material-to-usdcontextops
branch
from
November 27, 2026 15:33
3702194 to
d2151a5
Compare
frohnej-adsk
approved these changes
Nov 27, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work for LOOKDEVX-6063 / LOOKDEVX-6063