Skip to content

Commit 2802284

Browse files
committed
ENH: added support for ScalarVolume inheritant
Before that it was impossible to choose ScalarVolume derived as IO node. [There was a discoussion on thath](https://discourse.slicer.org/t/simple-filters-node-selector-doesnt-accept-scalar-volume-child-nodes/22571)
1 parent 92e8db0 commit 2802284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SimpleFilters/SimpleFilters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ def create(self, json):
849849
self.outputSelector.renameEnabled = True
850850
self.outputSelector.noneEnabled = False
851851
self.outputSelector.showHidden = False
852-
self.outputSelector.showChildNodeTypes = False
852+
self.outputSelector.showChildNodeTypes = True
853853
self.outputSelector.baseName = json["name"]+" Output"
854854
self.outputSelector.setMRMLScene( slicer.mrmlScene )
855855
self.outputSelector.setToolTip( "Pick the output to the algorithm." )
@@ -890,7 +890,7 @@ def createInputWidget(self,n, noneEnabled=False):
890890
inputSelector.removeEnabled = False
891891
inputSelector.noneEnabled = noneEnabled
892892
inputSelector.showHidden = False
893-
inputSelector.showChildNodeTypes = False
893+
inputSelector.showChildNodeTypes = True
894894
inputSelector.setMRMLScene( slicer.mrmlScene )
895895
inputSelector.setToolTip( "Pick the input to the algorithm." )
896896

0 commit comments

Comments
 (0)