mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user