Commit c05f7197 authored by finetjul's avatar finetjul
Browse files

ENH: Speedup Annotations: remove unnecessary scene browsing

Checking if there is at least 1 node of type m_Focus in the scene is
When there is at least 1 node, the scene was getting browsed twice, once
in that step and once again later in the code.

git-svn-id: 3bd1e089-480b-0410-8dfb-8563597acbee
parent 5577c3a3
......@@ -242,11 +242,6 @@ void vtkMRMLAnnotationDisplayableManager::UpdateFromMRML()
// check if there are any of these nodes in the scene
if (this->GetMRMLScene()->GetNumberOfNodesByClass(this->m_Focus) < 1)
// loop over the nodes for which this manager provides widgets
vtkMRMLNode *node = this->GetMRMLScene()->GetNextNodeByClass(this->m_Focus);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment