Skip to content

BUG: Fix model display threshold pipeline call

Sam Horvath requested to merge github/fork/agirault/fix-model-threshold into master

Created by: agirault

The ThresholdFilter should not be updated if there is no input mesh since the model display pipeline won't have an input algorithm. Doing the same check than the one made for the AssignAttribute filter when changing active scalar information fixes the issue.

Error:

ERROR: In C:\D\N\Slicer-0-build\VTKv7\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx, line 710
vtkCompositeDataPipeline (000002472107B300): Input port 0 of algorithm vtkThreshold(0000024720E7BBE0) has 0 connections but is not optional.

Fixed tests:

  • qSlicerModelsModuleWidgetTest
  • qMRMLModelDisplayNodeWidgetTest1

Issue reported by @lassoan

Merge request reports