bit masking fix

This commit is contained in:
Marc Zinnschlag 2015-09-26 17:39:55 +02:00
parent 72bb33c2c4
commit 3844c94975

View file

@ -465,7 +465,7 @@ void CSVRender::WorldspaceWidget::mousePressEvent (QMouseEvent *event)
osg::Node* node = *it;
if (CSVRender::TagBase* tag = dynamic_cast<CSVRender::TagBase *>(node->getUserData()))
{
if (!(tag->getElement() && mInteractionMask))
if (!(tag->getElement() & mInteractionMask))
break; // not interested -> continue looking
// hit something marked with a tag