joostdecock / core

Freesewing is an open source platform for made-to-measure sewing patterns

Home Page:https://freesewing.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Part::curvesCross indexing should not add a dash

joostdecock opened this issue · comments

Points added to the Part->points arrray by the Part::curvesCross method are getting this id:

$this->addPoint("$prefix-$i", $point);

That should instead be:

$this->addPoint($prefix.$i, $point);

This makes it consistent with other methods that don't add the dash when auto-adding points to a part.

While this is a simple fix, the hard work is to hunt down everywhere curvesCross is used in the patterns and make sure the change in point IDs doesn't break things.