Skip to content

Commit

Permalink
Gui: [skip ci] optimize View3DInventorViewer::containsViewProvider be…
Browse files Browse the repository at this point in the history
…cause it's sufficient to know if the root node of a view provider is part of the viewer or not
  • Loading branch information
wwmayer committed Apr 2, 2020
1 parent 5324540 commit d65d01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/View3DInventorViewer.cpp
Expand Up @@ -972,7 +972,7 @@ SbBool View3DInventorViewer::containsViewProvider(const ViewProvider* vp) const
{
SoSearchAction sa;
sa.setNode(vp->getRoot());
sa.setSearchingAll(true);
sa.setSearchingAll(false);
sa.apply(getSoRenderManager()->getSceneGraph());
return sa.getPath() != nullptr;
}
Expand Down

0 comments on commit d65d01b

Please sign in to comment.