Description: Deleting a Piece item doesn’t delete the Piece item from the pattern file. This behavior may be related to sporadic reports of patterns that can no longer be opened after complex changes have been made in Piece mode.
Desired behavior: Delete the entire piece information, including any internal paths.
Here is a file after creating a piece, adding an internal path, deleting the piece, then creating a different piece with the same internal path then deleting the piece, then saving and exiting the pattern. It retains each copy of the piece that was deleted.
<?xml version="1.0" encoding="UTF-8"?>
<pattern>
<!--Pattern created with Seamly2D v0.6.0.1 (https://fashionfreedom.eu/).-->
<version>0.6.1</version>
<unit>cm</unit>
<description/>
<notes/>
<measurements/>
<increments/>
<draw name="Pattern piece 1">
<calculation>
<point id="1" mx="0.132292" my="0.264583" name="A" type="single" x="0.79375" y="1.05833"/>
<point angle="0" basePoint="1" id="2" length="10" lineColor="black" lineType="solidLine" mx="-1.01687" my="0.197965" name="A1" type="endLine"/>
<point angle="270" basePoint="2" id="3" length="Line_A_A1" lineColor="black" lineType="solidLine" mx="-0.975653" my="-0.666835" name="A2" type="endLine"/>
<point firstPoint="1" id="4" mx="0.232219" my="-1.1344" name="A3" secondPoint="3" type="pointOfIntersection"/>
<line firstPoint="1" id="5" lineColor="black" lineType="solidLine" secondPoint="4"/>
<line firstPoint="3" id="6" lineColor="black" lineType="solidLine" secondPoint="4"/>
<spline color="black" id="9" penStyle="solidLine" point1="4" point2="1" point3="3" point4="2" type="cubicBezier"/>
<line firstPoint="1" id="10" lineColor="black" lineType="solidLine" secondPoint="3"/>
<point angle="AngleLine_A_A2" basePoint="1" curve="9" id="11" lineColor="black" lineType="solidLine" mx="-0.794363" my="0.220457" name="A4" type="curveIntersectAxis"/>
</calculation>
<modeling>
<point id="16" idObject="1" inUse="false" mx="0.132292" my="0.264583" type="modeling"/>
<point id="17" idObject="2" inUse="false" mx="-1.01687" my="0.197965" type="modeling"/>
<point id="18" idObject="3" inUse="false" mx="-1.20465" my="-1.14565" type="modeling"/>
<point id="19" idObject="4" inUse="false" mx="0.232219" my="-1.1344" type="modeling"/>
<spline id="21" idObject="9" inUse="true" type="modelingSpline"/>
<point id="22" idObject="11" inUse="true" mx="-0.794363" my="0.220457" type="modeling"/>
<spline id="23" idObject="9" inUse="true" type="modelingSpline"/>
<path cut="false" id="24" inUse="false" lineType="dashLine" name="InternalCurve" type="2">
<nodes>
<node idObject="21" reverse="0" type="NodeSpline"/>
<node idObject="22" type="NodePoint"/>
<node idObject="23" reverse="0" type="NodeSpline"/>
</nodes>
</path>
<point id="25" idObject="4" inUse="true" mx="0.232219" my="-1.1344" type="modeling"/>
<spline id="26" idObject="9" inUse="true" type="modelingSpline"/>
<point id="27" idObject="11" inUse="true" mx="-0.794363" my="0.220457" type="modeling"/>
<spline id="28" idObject="9" inUse="true" type="modelingSpline"/>
<point id="29" idObject="2" inUse="true" mx="-1.01687" my="0.197965" type="modeling"/>
<path cut="false" id="30" inUse="false" lineType="dashLine" name="InternalCurve" type="2">
<nodes>
<node idObject="25" type="NodePoint"/>
<node idObject="26" reverse="0" type="NodeSpline"/>
<node idObject="27" type="NodePoint"/>
<node idObject="28" reverse="0" type="NodeSpline"/>
<node idObject="29" type="NodePoint"/>
</nodes>
</path>
</modeling>
<details/>
<groups/>
</draw>
</pattern>