Take branch thickness into account when avoiding
Take branch thickness into account when avoiding

Also fix an occasion where a bit shift went the wrong way around.

Contributes to issue CURA-4523.

Ultimaker/CuraEngine,alephobjects/CuraEngine,alephobjects/CuraEngine,alephobjects/CuraEngine,ROBO3D/CuraEngine,ROBO3D/CuraEngine,Ultimaker/CuraEngine,ROBO3D/CuraEngine