On Tue, 2008-08-26 at 12:08 -0400, Max Bandazian wrote: > 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;
Good catch here. :) > 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. I'm not sure I follow--picking is done on an osgViewer::View* pointer, using View::computeIntersections. I could definitely be missing something, but I'm not sure how a camera setup would change this? > Thanks, > Max Bandazian > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
