Fix Zach's crash

This commit is contained in:
Daniel 2015-03-12 22:07:41 +02:00
parent 31c19154bc
commit 83633b734f

View file

@ -214,6 +214,8 @@ class DistributedSuit(DistributedSuitBase.DistributedSuitBase, DelayDeletable):
def setPathEndpoints(self, start, end, minPathLen, maxPathLen): def setPathEndpoints(self, start, end, minPathLen, maxPathLen):
if self.pathEndpointStart == start and self.pathEndpointEnd == end and self.minPathLen == minPathLen and self.maxPathLen == maxPathLen and self.path != None: if self.pathEndpointStart == start and self.pathEndpointEnd == end and self.minPathLen == minPathLen and self.maxPathLen == maxPathLen and self.path != None:
return return
if self.pathEndpointStart not in self.sp.pointIndexes or self.pathEndpointEnd not in self.sp.pointIndexes:
return
self.pathEndpointStart = start self.pathEndpointStart = start
self.pathEndpointEnd = end self.pathEndpointEnd = end
self.minPathLen = minPathLen self.minPathLen = minPathLen