Annotations : Remove check on priority

For performance reasons, priority was checked before dyncast. This does not work now for unknown reasons.
This commit is contained in:
Magne Sjaastad
2019-01-02 14:39:39 +01:00
parent c5dc9da4bd
commit fe75265053

View File

@@ -1153,8 +1153,6 @@ void RiuViewerCommands::handleTextPicking(int winPosX, int winPosY, cvf::HitItem
ref<Ray> ray = m_viewer->mainCamera()->rayFromWindowCoordinates(translatedMousePosX, translatedMousePosY);
for (size_t pIdx = 0; pIdx < partCollection.size(); ++pIdx)
{
if (partCollection[pIdx]->priority() == RivPartPriority::PartType::Text) // Just trying to avoid dyncasting all drawables
{
DrawableText* textDrawable = dynamic_cast<DrawableText*>(partCollection[pIdx]->drawable());
if (textDrawable)
@@ -1168,7 +1166,6 @@ void RiuViewerCommands::handleTextPicking(int winPosX, int winPosY, cvf::HitItem
}
}
}
}
hitItems->sort();
}