Skip to content

Commit

Permalink
+ check for empty SoPath when using SoSearchAction
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 16, 2016
1 parent cba54c5 commit f48e57c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gui/ViewProvider.cpp
Expand Up @@ -395,6 +395,8 @@ SoPickedPoint* ViewProvider::getPointOnRay(const SbVec2s& pos, const View3DInven
sa.setNode(pcRoot);
sa.setSearchingAll(true);
sa.apply(viewer->getSoRenderManager()->getSceneGraph());
if (!sa.getPath())
return nullptr;
SoGetMatrixAction gm(viewer->getSoRenderManager()->getViewportRegion());
gm.apply(sa.getPath());

Expand Down

0 comments on commit f48e57c

Please sign in to comment.