Show
Ignore:
Timestamp:
04/14/14 18:16:22 (3 days ago)
Author:
robert
Message:

Fixed comment

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgoscdevice/osgoscdevice.cpp

    r13331 r13376  
    123123    float x = ea.getX(); 
    124124    float y = ea.getY(); 
    125 #if 0 
    126     osg::ref_ptr< osgUtil::LineSegmentIntersector > picker = new osgUtil::LineSegmentIntersector(osgUtil::Intersector::WINDOW, x, y); 
    127     osgUtil::IntersectionVisitor iv(picker.get()); 
    128     view->getCamera()->accept(iv); 
    129     if (picker->containsIntersections()) 
    130     { 
    131         intersections = picker->getIntersections(); 
    132 #else 
    133     if (view->computeIntersections(x,y,intersections)) 
    134     { 
    135 #endif 
     125    if (view->computeIntersections(ea, intersections)) 
     126    { 
    136127        for(osgUtil::LineSegmentIntersector::Intersections::iterator hitr = intersections.begin(); 
    137128            hitr != intersections.end();