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,
|
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));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue