mirror of https://codeberg.org/topola/topola.git
drawing: for now, make adding canes have no infringables
This commit is contained in:
parent
c34cd730c5
commit
1c07eb96ac
|
|
@ -398,17 +398,8 @@ impl<CW: Copy, R: AccessRules> Drawing<CW, R> {
|
|||
cw: bool,
|
||||
) -> Result<Cane, LayoutException> {
|
||||
let maybe_wraparound = self.wraparoundable(around).wraparound();
|
||||
let infringables = self.collect().wraparounded_bows(around);
|
||||
|
||||
let cane = self.add_cane_with_infringables(
|
||||
from,
|
||||
around,
|
||||
dot_weight,
|
||||
seg_weight,
|
||||
bend_weight,
|
||||
cw,
|
||||
Some(&infringables),
|
||||
)?;
|
||||
let cane = self.add_cane(from, around, dot_weight, seg_weight, bend_weight, cw)?;
|
||||
|
||||
if let Some(wraparound) = maybe_wraparound {
|
||||
self.reattach_bend(wraparound, Some(cane.bend));
|
||||
|
|
|
|||
Loading…
Reference in New Issue