Skip to content

Commit

Permalink
Merge pull request #345 from mattyjams/pr/usdImaging_PopulateSelectio…
Browse files Browse the repository at this point in the history
…n_usdPath_param

adapt to UsdImagingDelegate::PopulateSelection param change
  • Loading branch information
Krystian Ligenza authored Mar 13, 2020
2 parents 1aab25c + fb155cb commit 38185d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ See Pixar's official github page for instructions on how to build USD: https://g

| | ![](images/pxr.png) |
|:------------: |:---------------: |
| CommitID/Tags | master: [v19.07](https://github.com/PixarAnimationStudios/USD/releases/tag/v19.07) or [v19.11](https://github.com/PixarAnimationStudios/USD/releases/tag/v19.11) or [v20.02](https://github.com/PixarAnimationStudios/USD/releases/tag/v20.02) <br> dev: [40c813](https://github.com/PixarAnimationStudios/USD/commit/40c813421425c47aa84f4572b4798fbb3430984e) |
| CommitID/Tags | master: [v19.07](https://github.com/PixarAnimationStudios/USD/releases/tag/v19.07) or [v19.11](https://github.com/PixarAnimationStudios/USD/releases/tag/v19.11) or [v20.02](https://github.com/PixarAnimationStudios/USD/releases/tag/v20.02) <br> dev: [893c8e4](https://github.com/PixarAnimationStudios/USD/commit/893c8e4cc4d45fb3e7364369d7767602de411120) |

For additional information on building Pixar USD, see the ***Additional Build Instruction*** section below.

Expand Down
8 changes: 5 additions & 3 deletions lib/render/vp2RenderDelegate/proxyRenderDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,13 @@ void ProxyRenderDelegate::_FilterSelection()
continue;
}

const SdfPath usdPath(segments[1].string());
const SdfPath idxPath(_sceneDelegate->ConvertCachePathToIndexPath(usdPath));
SdfPath usdPath(segments[1].string());
#if !defined(USD_IMAGING_API_VERSION) || USD_IMAGING_API_VERSION < 11
usdPath = _sceneDelegate->ConvertCachePathToIndexPath(usdPath);
#endif

_sceneDelegate->PopulateSelection(HdSelection::HighlightModeSelect,
idxPath, UsdImagingDelegate::ALL_INSTANCES, _selection);
usdPath, UsdImagingDelegate::ALL_INSTANCES, _selection);
}
#endif
}
Expand Down
4 changes: 4 additions & 0 deletions lib/usd/hdMaya/adapters/proxyAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ void HdMayaProxyAdapter::PopulateSelectedPaths(

// First, we check to see if the entire proxy shape is selected
if (selectedDag.node() == proxyMObj) {
#if defined(USD_IMAGING_API_VERSION) && USD_IMAGING_API_VERSION >= 11
selectedSdfPaths.push_back(sdfPath::AbsoluteRootPath());
#else
selectedSdfPaths.push_back(_usdDelegate->GetDelegateID());
#endif
_usdDelegate->PopulateSelection(
HdSelection::HighlightModeSelect, selectedSdfPaths.back(),
UsdImagingDelegate::ALL_INSTANCES, selection);
Expand Down

0 comments on commit 38185d2

Please sign in to comment.