Skip to content

Commit

Permalink
Use updated name for Hd task param
Browse files Browse the repository at this point in the history
enableSelection has been replaced in Hdx API v10
  • Loading branch information
dj-mcg committed Jul 21, 2023
1 parent 99df05d commit 06eb9af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mayaUsd/render/pxrUsdMayaGL/sceneDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ PxrMayaHdSceneDelegate::PxrMayaHdSceneDelegate(
renderIndex->InsertTask<HdxSelectionTask>(this, _selectionTaskId);
_ValueCache& cache = _valueCacheMap[_selectionTaskId];
HdxSelectionTaskParams taskParams;
#if HDX_API_VERSION < 10
taskParams.enableSelection = true;
#else
taskParams.enableSelectionHighlight = true;
#endif

// Note that the selection color is a constant zero value. This is to
// mimic selection behavior in Maya where the wireframe color is what
Expand Down

0 comments on commit 06eb9af

Please sign in to comment.