Skip to content

Commit 78607da

Browse files
authored
Reinstating checks that were accidentally removed during the previous commit.
1 parent 9055125 commit 78607da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pxr/usdImaging/usdImaging/piPrototypeSceneIndex.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,13 @@ UsdImaging_PiPrototypeSceneIndex::GetPrim(const SdfPath &primPath) const
274274

275275
TfSmallVector<HdContainerDataSourceHandle, 4> dsVec;
276276

277-
if (_prototypeRootOverlaySource) {
277+
if (_prototypeRootOverlaySource && primPath == _prototypeRoot) {
278278
dsVec.emplace_back(_prototypeRootOverlaySource);
279279
}
280280

281281
dsVec.emplace_back(prim.dataSource);
282282

283-
if (_prototypeRootUnderlaySource) {
283+
if (_prototypeRootUnderlaySource && primPath == _prototypeRoot) {
284284
dsVec.emplace_back(_prototypeRootUnderlaySource);
285285
}
286286
if (_underlaySource) {

0 commit comments

Comments
 (0)