layer.userData from Duplicated Master

Hi,
When I tried to fix some issue in my Plugin Color Flow, I recently discover that if I duplicate a master where some layer have userData:

print(type(layer.userData["CustomData"]))
return
objective-c class __NSFrozenDictionaryM
instead of
objective-c class __NSDictionaryM

How can I fix this ? Because after that I can’t modify my userData without close/re-open Glyphs.

How did you duplicate the master?

Using Glyph UI

Capture d’écran 2022-10-14 à 16.36.15

Yes. It is probably a good idea to consider everything in user data as immutable.

But I fixed the duplication of the master that it should work in version 3.2.

1 Like