Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit e450a373750b37b768ecfdccd8a16579e5f69641 1 parent e67c6b6
alexy authored
View
6 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++)
{
Please sign in to comment.
Something went wrong with that request. Please try again.