LettError / designSpaceRoboFontExtension

A RoboFont extension for creating and editing designspace documents.
MIT License
27 stars 6 forks source link

[locationPreview] new duplicated instance remains connected to original #69

Closed LettError closed 8 months ago

LettError commented 8 months ago

Select instance / click "Duplicate" / change one of the axis values -> observe the value in the original instance change as well.

typemytype commented 8 months ago

oh

instance.asdict() does not do a deep copy of fe locations... so the object is for location is the same

will fix it

typemytype commented 8 months ago
d = CurrentDesignspace()

i = d.instances[-1]

c = i.asdict()

print(id(i.designLocation))
print(id(c["designLocation"]))