Permalink
Browse files

BUG 2838. Observe only models that have display nodes, since their po…

…lydata is used in the slice models pipeline

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21533 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information...
1 parent e67c6b6 commit e450a373750b37b768ecfdccd8a16579e5f69641 alexy committed Dec 28, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 Libs/MRML/DisplayableManager/vtkMRMLModelSliceDisplayableManager.cxx
@@ -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++)
{

0 comments on commit e450a37

Please sign in to comment.