Skip to content

Commit

Permalink
Fix test for UFE lights from MayaUSD
Browse files Browse the repository at this point in the history
  • Loading branch information
debloip-adsk committed Nov 16, 2023
1 parent debf297 commit 584bb35
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions test/lib/mayaUsd/render/mayaToHydra/cpp/testMayaUsdUfeItems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,9 @@ using namespace MayaHydra;

bool IsUfeLight(const HdSceneIndexBasePtr& sceneIndex, const SdfPath& primPath)
{
bool isUfeLightPrim = primPath.GetElementString().find("ufeLightProxy") < std::string::npos;
if (!isUfeLightPrim) {
return false;
}
// The shape prim is used to display the light's wireframe and is the only prim we want to allow
// for UFE lights
bool isShapePrim = primPath.GetElementString().find("ufeLightProxyShape") < std::string::npos;
return !isShapePrim;
HdSceneIndexPrim prim = sceneIndex->GetPrim(primPath);
return HdPrimTypeIsLight(prim.primType)
&& primPath.GetElementString().find("ufeLightProxy") < std::string::npos;
}

TEST(MayaUsdUfeItems, skipUsdUfeLights)
Expand Down

0 comments on commit 584bb35

Please sign in to comment.