Skip to content

Commit 995fa79

Browse files
Update VTKPlots.py
1 parent 11fc132 commit 995fa79

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Packages/vcs/vcs/VTKPlots.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,10 @@ def onClosing(self, cell):
755755
plot.onClosing(cell)
756756

757757
def plotContinents(self, wc, projection, wrap, vp, priority, **kargs):
758-
contData = vcs2vtk.prepContinents(self.canvas._continentspath())
758+
continents_path = self.canvas._continentspath()
759+
if continents_path is None:
760+
return (None, 1, 1)
761+
contData = vcs2vtk.prepContinents(continents_path)
759762
contMapper = vtk.vtkPolyDataMapper()
760763
contMapper.SetInputData(contData)
761764
contActor = vtk.vtkActor()

0 commit comments

Comments
 (0)