refactoring
This commit is contained in:
@@ -46,9 +46,11 @@ class IEPolys:
|
||||
|
||||
def add(self, type):
|
||||
self.list = self.list[0:self.n]
|
||||
self.list.append ( IEPolysPoints(self, type) )
|
||||
l = IEPolysPoints(self, type)
|
||||
self.list.append ( l )
|
||||
self.n_max = self.n = self.n + 1
|
||||
self.dirty = True
|
||||
return l
|
||||
|
||||
def n_dec(self):
|
||||
self.n = max(0, self.n-1)
|
||||
|
||||
Reference in New Issue
Block a user