Update a duplicate Fixed Curve, removes duplicate flag

In Seamly v2-5-2024 on Windows 10: Duplicate attribute removed when updating a duplicate of a single segment bezier curve, Curve->Fixed. The duplicate’s object ID in the XML remains unique, but the spline name that is displayed in properties and is usable in formulas is no longer unique. I realize this is wouldn’t happen often but the consequences could be wonky.

Steps to recreate the problem:

  1. I created 2 fixed curves (Curve > Fixed), one is a duplicate of the other. Spl_A4_A3 with color ‘Blue’, duplicate is Spl_A4_A3_1 with color 'Cornflower Blue.

  2. When I change any attribute of the duplicate, the duplicate’s name Spl_A4_A3_1 changes to the original’s name Spl_A4_A3.

  3. When I save and close the file, then close and reopen Seamly, I get a ‘Seamly did not close properly. Do you want to reopen the file?’ I click Yes, and I get a reverted file without the changes to the duplicate. But if I save and close the file, then open another file, the problem with two objects that can be referenced by the same name becomes permanent. I open the file again, and the problem is there. Wonky.

Any script that I write to manipulate the XML files will be affected, and i won’t be able to catch the problem easily.

Files

Screenshots

Screenshot of the duplicate’s properties prior to the change:

Duplicate’s XML attributes are duplicate=“1” and color=“cornflowerblue”:

<spline color="blue" id="12" lineWeight="2.11" penStyle="solidLine" point1="5" point2="3" point3="1" point4="4" type="cubicBezier"/>

<spline color="cornflowerblue" duplicate="1" id="13" lineWeight="0.13" penStyle="solidLine" point1="5" point2="3" point3="1" point4="4" type="cubicBezier"/>

Screenshot of the duplicate’s properties after the change. The name is Spl_A4_A3, same as the original.

Duplicate’s XML attributes are color=“deeppink” and the duplicate attribute is missing.

<spline color="blue" id="12" lineWeight="2.11" penStyle="solidLine" point1="5" point2="3" point3="1" point4="4" type="cubicBezier"/>

<spline color="deeppink" id="13" lineWeight="0.13" penStyle="solidLine" point1="5" point2="3" point3="1" point4="4" type="cubicBezier"/>
1 Like

I know what’s happening. When there’s “duplicates” of a fixed curve (which I don’t know why one would do so) the Name has a count number suffix added. The name is created correctly in the Dialog:

Screenshot 2024-02-10 103210

While the Properties Editor is not creating the name Correctly:

image

Since making a duplicate is not something I would do, I failed to test for that when I updated and added to the curves in the Property Editor. :frowning: I’ll try and fix it as soon as I can.

1 Like