+ check for empty SoPath when using SoSearchAction

This commit is contained in:
wmayer 2016-04-16 16:54:41 +02:00
parent cba54c51ad
commit f48e57c99f

View File

@ -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());