Skip to content

Commit

Permalink
Additional change to fix issue SlicerProstate#358. This will avoid im…
Browse files Browse the repository at this point in the history
…porting error for SegmentEditorSurfaceCut without changing the SegmentEditorExtraEffects.
  • Loading branch information
tokjun committed Oct 9, 2020
1 parent b4fe318 commit 04c3890
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SliceTracker/SurfaceCutToLabel.py
Expand Up @@ -8,8 +8,6 @@

from EditorLib import ColorBox

from SegmentEditorSurfaceCutLib import SurfaceCutLogic


class SurfaceCutToLabel(ScriptedLoadableModule):

Expand Down Expand Up @@ -503,6 +501,7 @@ def stopQuickSegmentationMode(self, cancelled=False):
self.reset()

def _initializeSurfaceCutLogic(self):
from SegmentEditorSurfaceCutLib import SurfaceCutLogic
self._surfaceCutLogic = SurfaceCutLogic(self.scriptedEffect)

def updateModel(self, caller=None, event=None):
Expand Down Expand Up @@ -594,4 +593,4 @@ def labelValueToRGB(self, labelValue, colorNode=None):
lut = colorNode.GetLookupTable()
rgb = lut.GetTableValue(labelValue)
return [rgb[0], rgb[1], rgb[2]]
return None
return None

0 comments on commit 04c3890

Please sign in to comment.