Did `Layer.reinterpolate()` break in latest ce version(s)?

Just this Layer.reinterpolate() bit errors in this:

Traceback (most recent call last):
  File "<macro panel>", line 18
  File "GlyphsApp/GlyphsApp/__init__.py", line 9736, in Layer_replaceLayerWithInterpolation
objc.error: NSInternalInconsistencyException - enableUndoRegistration: NSUndoManager 0x12c6314d0 is in invalid state, enableUndoRegistration may only be invoked with matching call to disableUndoRegistration

G 3507

can you send me the file that is causing this? I can’t reproduce it right now.

Sorry for the delay. It seems it was broken by a script or plugin. Could not reproduce either ever since. All apologies.

1 Like

I’m experiencing this now too. It’s not working for my file, nor can I reinterpoalet from the layer menu. I’ll send you the file @GeorgSeifert

Reinterpolating N
Traceback (most recent call last):
  File "Reinterpolate.py", line 20
    process( thisLayer )
  File "Reinterpolate.py", line 12, in process
    thisLayer.reinterpolate()
  File "GlyphsApp/GlyphsApp/__init__.py", line 9716, in Layer_replaceLayerWithInterpolation
objc.error: NSInternalInconsistencyException - enableUndoRegistration: NSUndoManager 0x600006428e70 is in invalid state, enableUndoRegistration may only be invoked with matching call to disableUndoRegistration

Once i restarted Glyphs, it was fixed on my end. Likely a script broke some internals. Did you try if that helps?

Yep, it’s like that every time I restart. I should try it in safe mode actually.

@oneweioranother The problem is that you have a unchecked “enforce compatibility check” parameter and all instances are deactivated. Either disable the parameter or enable the instances.

edit: I fixed it.

1 Like