drawing: for now, make adding canes have no infringables

This commit is contained in:
Mikolaj Wielgus 2024-07-09 17:00:56 +02:00
parent c34cd730c5
commit 1c07eb96ac
1 changed files with 1 additions and 10 deletions

View File

@ -398,17 +398,8 @@ impl<CW: Copy, R: AccessRules> Drawing<CW, R> {
cw: bool, cw: bool,
) -> Result<Cane, LayoutException> { ) -> Result<Cane, LayoutException> {
let maybe_wraparound = self.wraparoundable(around).wraparound(); let maybe_wraparound = self.wraparoundable(around).wraparound();
let infringables = self.collect().wraparounded_bows(around);
let cane = self.add_cane_with_infringables( let cane = self.add_cane(from, around, dot_weight, seg_weight, bend_weight, cw)?;
from,
around,
dot_weight,
seg_weight,
bend_weight,
cw,
Some(&infringables),
)?;
if let Some(wraparound) = maybe_wraparound { if let Some(wraparound) = maybe_wraparound {
self.reattach_bend(wraparound, Some(cane.bend)); self.reattach_bend(wraparound, Some(cane.bend));