Skip to content

Commit

Permalink
refactor: pass shared_ptr reference instead of copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Latios96 committed Oct 16, 2024
1 parent 9c4fcb7 commit d1f0eb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void UsdSubdivisionSurfaceMeshReader::translateIndices(
}

void UsdSubdivisionSurfaceMeshReader::translateBoundaryInterpolation(
std::shared_ptr<SubdivisionSurfaceMesh> subdivisionSurfaceMesh) {
std::shared_ptr<SubdivisionSurfaceMesh> &subdivisionSurfaceMesh) {
auto interpolateBoundary =
UsdUtils::getAttributeValueAs<pxr::TfToken>(usdPrim.GetInterpolateBoundaryAttr(), timeCodeToRead);
if (interpolateBoundary == pxr::UsdGeomTokens->edgeAndCorner) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class UsdSubdivisionSurfaceMeshReader : public BaseUsdImageableReader<pxr::UsdGe
void ensureCatmullClarkScheme() const;

private:
void translateBoundaryInterpolation(std::shared_ptr<SubdivisionSurfaceMesh> sharedPtr);
void translateBoundaryInterpolation(std::shared_ptr<SubdivisionSurfaceMesh> &subdivisionSurfaceMesh);
};

} // crayg

0 comments on commit d1f0eb9

Please sign in to comment.