Skip to content

Commit

Permalink
Account for multiple pick hits in point instance pick test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppt-adsk committed Mar 21, 2024
1 parent dc7ce6b commit 1e39197
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ TEST(TestPointInstancePicking, pickPointInstance)
mouseClick(Qt::MouseButton::LeftButton, active3dView.widget(), primMouseCoords);
active3dView.refresh();

ASSERT_EQ(sn->size(), 1u);
ASSERT_EQ(sn->front()->path(), selected);
// When picking on the boundary of multiple objects, one Hydra pick hit per
// object is returned. Therefore test that the expected selected path is
// in the selection.
ASSERT_GE(sn->size(), 1u);
ASSERT_TRUE(sn->contains(selected));
}

0 comments on commit 1e39197

Please sign in to comment.