Commit e450a373 authored by alexy's avatar alexy
Browse files

BUG 2838. Observe only models that have display nodes, since their polydata is...

BUG 2838. Observe only models that have display nodes, since their polydata is used in the slice models pipeline

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21533 3bd1e089-480b-0410-8dfb-8563597acbee
parent e67c6b6a
......@@ -517,10 +517,12 @@ void vtkMRMLModelSliceDisplayableManager::AddDisplayableNode(
return;
}
this->Internal->AddObservations(node);
// Add Display Nodes
std::vector<vtkMRMLDisplayNode *> dnodes = node->GetDisplayNodes();
if (dnodes.size() > 0)
{
this->Internal->AddObservations(node);
}
std::vector<vtkMRMLDisplayNode *>::iterator diter;
for ( diter = dnodes.begin(); diter != dnodes.end(); diter++)
{
......
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