More bug fix in cumulus trackAvoid.

This commit is contained in:
Jean-Paul Chaput 2023-07-19 22:04:58 +02:00
parent 1e2c88fad8
commit 3cddf2f3ae
1 changed files with 3 additions and 2 deletions

View File

@ -107,9 +107,10 @@ class HTree ( object ):
gaugeConf.setStackPosition( contact, x, y )
gaugeConf.createVertical ( contact, forkContact, x, 0 )
trackAvoidBox = Box( x, forkContact.getY(), x, y )
trackAvoidBox.inflate( 0, 0, 0, self.spares.conf.sliceHeight )
gaugeConf.addTrackAvoid( trackAvoidBox )
if gaugeConf.cfg.spares.useFeedTrackAvoid and forkContact.getY() > contact.getY():
if gaugeConf.cfg.spares.useFeedTrackAvoid:
if forkContact.getY() > contact.getY():
trackAvoidBox.inflate( 0, 0, 0, self.spares.conf.sliceHeight )
self.spares.trackAvoid( trackAvoidBox )
if len(leaf.buffers) > 1:
tl1Contact = gaugeConf.rpAccessByPlugName( leaf.buffers[1], bufferConf.input, ckNet, GaugeConf.DeepDepth|GaugeConf.HAccess )