When I add a point to an existing Poly Line that I have already saved and that has individual segments nodes defined, everything appears to save without an issue. However, when I close and re-open xlights, I get a dialog box stating that it could not open RGB Effects and my entire layout is wiped clean. (Thanks to how ever implemented the back up feature)
I dug into the RGBEffects.xml filke and found this:
<model DisplayAs="Poly Line" StringType="RGB Nodes" StartSide="B" Antialias="1" PixelSize="2" Transparency="0" parm1="1" parm3="1" LayoutGroup="Default" Dir="L" name="Roof.Peak.1" IndivSegs="1" Seg5="47" Seg5="53" Seg4="155" Seg3="55" Seg1="41" Seg2="41" parm2="292" NumPoints="5" PointData="0.393333,0.749334,0.411333,0.774222,0.429333,0.799111,0.468178,0.798556,0.540000,0.734222" cPointData="" versionNumber="1" StartChannel="#192.168.1.41:28:1">
<ControllerConnection/>
</model>
The Seg5 attribute repeats itself. And looking at the prior saved versions it does not appear to clean up Segments that have been removed. I at one point had 5 segments but I changed it to 3, then added a 4th. The 4th added point is when the error happens on re-opening xlights as mentioned above.
<model DisplayAs="Poly Line" StringType="RGB Nodes" StartSide="B" Antialias="1" PixelSize="2" Transparency="0" parm1="1" parm3="1" LayoutGroup="Default" Dir="L" name="Roof.Peak.1" IndivSegs="1" Seg4="53" Seg5="47" Seg1="82" Seg2="55" Seg3="155" parm2="292" NumPoints="4" PointData="0.474667,0.736889,0.500667,0.784889,0.549512,0.786111,0.626000,0.707556" cPointData="" versionNumber="1" StartChannel="#192.168.1.41:28:1">
<ControllerConnection/>
</model>
I removed the two Seg5 attributes and so far everything seems ok.