From 3844c94975d18f7b98a3cd19f7e57ec310df636c Mon Sep 17 00:00:00 2001
From: Marc Zinnschlag <marc@zpages.de>
Date: Sat, 26 Sep 2015 17:39:55 +0200
Subject: [PATCH] bit masking fix

---
 apps/opencs/view/render/worldspacewidget.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/opencs/view/render/worldspacewidget.cpp b/apps/opencs/view/render/worldspacewidget.cpp
index 246f6a4bf5..42f81eea45 100644
--- a/apps/opencs/view/render/worldspacewidget.cpp
+++ b/apps/opencs/view/render/worldspacewidget.cpp
@@ -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