Bug in spares.py, "rtag", the root was repeated in each level.
This commit is contained in:
parent
df4201e1fe
commit
556c38e4b9
|
@ -283,8 +283,8 @@ class QuadTree ( object ):
|
|||
return False
|
||||
|
||||
@staticmethod
|
||||
def _create ( spares, parent, area, rtag, raiseError=False ):
|
||||
childRtag = parent.rtag+'_'+rtag if parent else rtag
|
||||
def _create ( spares, parent, area, tag, raiseError=False ):
|
||||
childRtag = parent.rtag+'_'+tag if parent else tag
|
||||
if QuadTree.isUsedArea( spares, area, childRtag, raiseError ):
|
||||
return None
|
||||
qt = QuadTree( spares, parent, area, childRtag )
|
||||
|
@ -307,10 +307,7 @@ class QuadTree ( object ):
|
|||
self.bufferNet = None
|
||||
self.pool = BufferPool( self )
|
||||
self.plugs = []
|
||||
if self.parent and self.parent.rtag != '':
|
||||
self.rtag = self.parent.rtag + '_' + rtag
|
||||
else:
|
||||
self.rtag = rtag
|
||||
self.rtag = rtag
|
||||
|
||||
def destroy ( self ):
|
||||
if self.bl: self.bl.destroy()
|
||||
|
|
Loading…
Reference in New Issue