Hi,

Lines 302-305 of WindowManager.cpp seem to have a parenthesizing error - the
code is
            if(
                (!win || win->getVisibilityMode() == Window::VM_PARTIAL) &&
                !win->isPointerXYWithinVisible(x, y)
            ) continue;

But it probably should be

if (!win || (win->getVisibilityMode() == Window::VM_PARTIAL) &&
!win->isPointerXYWithinVisible(x, y)))
   continue;

The effect of the bug is to segfault if a non-osgWidgets::Window node hasn't
been excluded from picking via NodeMask.

On a related note, it would be nice if in some future version it were
possible to do widget picking through a camera other than the master, since
a slave camera seems like a convenient way to view a HUD.

Thanks,
Max Bandazian
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to