Skip to content

Commit

Permalink
EMSUSD-1121 - Pasted prims should be selected
Browse files Browse the repository at this point in the history
* clang-format
  • Loading branch information
seando-adsk committed May 21, 2024
1 parent 1dd6997 commit 72162f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/usdUfe/ufe/UsdClipboardCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ void UsdPasteClipboardCommand::execute()
appendToVector(duplicateCmd->targetItems(), pasteInfo.successfulPastes);
auto tmpTargetItems = duplicateCmd->targetItems();
_targetItems.insert(_targetItems.end(), tmpTargetItems.begin(), tmpTargetItems.end());
_itemsToSelect.insert(_itemsToSelect.end(), tmpTargetItems.begin(), tmpTargetItems.end());
_itemsToSelect.insert(
_itemsToSelect.end(), tmpTargetItems.begin(), tmpTargetItems.end());
}

// Add the paste info.
Expand Down
2 changes: 1 addition & 1 deletion lib/usdUfe/ufe/UsdClipboardCommands.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class USDUFE_PUBLIC UsdPasteClipboardCommand : public Ufe::PasteClipboardCommand
std::vector<PasteInfo> getPasteInfos() const override;

// For selection of pasted items.
Ufe::SceneItemList itemsToSelect() const { return _itemsToSelect; }
Ufe::SceneItemList itemsToSelect() const { return _itemsToSelect; }

private:
UsdUndoableItem _undoableItem;
Expand Down

0 comments on commit 72162f6

Please sign in to comment.