From f5fa375f327d4bc7caf96eb6b711850d44811af0 Mon Sep 17 00:00:00 2001 From: Markus Tavenrath Date: Mon, 16 Jan 2023 09:55:07 +0100 Subject: [PATCH] Fix #2149. When building the requestedIndicesMap in one case the shift by minIndex was missing. --- pxr/usdImaging/usdImaging/instanceAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pxr/usdImaging/usdImaging/instanceAdapter.cpp b/pxr/usdImaging/usdImaging/instanceAdapter.cpp index 2b30d1d8d5..6003f6e101 100644 --- a/pxr/usdImaging/usdImaging/instanceAdapter.cpp +++ b/pxr/usdImaging/usdImaging/instanceAdapter.cpp @@ -2626,7 +2626,7 @@ UsdImagingInstanceAdapter::GetScenePrimPaths( // set bits for all requested indices to true for (size_t i = 0; i < instanceIndices.size(); i++) { - requestedIndicesMap[instanceIndices[i]] = i; + requestedIndicesMap[instanceIndices[i] - minIdx] = i; } result.resize(instanceIndices.size());