GUI picks only traverse nodes with PICK_BIT set.
(Which is all nodes except those which explicitly opt out, such as lights, skydome, for the moment)
This commit is contained in:
parent
312be5410a
commit
a94dce031c
1 changed files with 2 additions and 1 deletions
|
@ -1193,7 +1193,8 @@ static bool computeCameraIntersection(const CameraInfo* cinfo, const osg::Vec2d&
|
|||
Vec3d(start.x(), start.y(), start.z()),
|
||||
Vec3d(end.x(), end.y(), end.z()));
|
||||
osgUtil::IntersectionVisitor iv(picker.get());
|
||||
iv.setTraversalMask( ~simgear::MODELLIGHT_BIT );
|
||||
iv.setTraversalMask( simgear::PICK_BIT );
|
||||
|
||||
const_cast<Camera*>(camera)->accept(iv);
|
||||
if (picker->containsIntersections()) {
|
||||
intersections = picker->getIntersections();
|
||||
|
|
Loading…
Add table
Reference in a new issue