bit masking fix

sceneinput
Marc Zinnschlag 9 years ago
parent 72bb33c2c4
commit 3844c94975

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

Loading…
Cancel
Save