Skip to content

Commit

Permalink
Issue #91: [Epic] Undo states and object updates:
Browse files Browse the repository at this point in the history
- Removed font wide undo!
- Restored contour undo on all layers for glyphs;
  • Loading branch information
kateliev committed Apr 10, 2024
1 parent b074b7b commit dd34d68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Lib/typerig/proxy/fl/objects/font.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from typerig.proxy.fl.objects.glyph import pGlyph, eGlyph

# - Init ---------------------------------
__version__ = '0.28.8'
__version__ = '0.28.9'

# - Keep compatibility for basestring checks
try:
Expand Down Expand Up @@ -430,8 +430,8 @@ def updateObject(self, flObject, undoMessage='TypeRig', verbose=True):
flObject (flGlyph, flLayer, flShape, flNode, flContour): Object to be update and set undo state
undoMessage (string): Message to be added in undo/history list.
'''
fl6.flItems.notifyChangesApplied(undoMessage, flObject, True)
fl6.flItems.notifyPackageContentUpdated(self.fl.fgPackage.id)
#fl6.flItems.notifyChangesApplied(undoMessage, flObject, True) # !!! No undo... but
fl6.flItems.notifyPackageContentUpdated(self.fl.fgPackage.id) # !!! Font wide operations will be applied anyway :)
if verbose: print('DONE:\t{}'.format(undoMessage))

def update(self):
Expand Down
8 changes: 4 additions & 4 deletions Lib/typerig/proxy/fl/objects/glyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from typerig.proxy.fl.objects.string import diactiricalMarks

# - Init -------------------------------------------
__version__ = '0.31.6'
__version__ = '0.31.7'

# - Keep compatibility for basestring checks
try:
Expand Down Expand Up @@ -759,12 +759,12 @@ def updateObject(self, flObject, undoMessage='TypeRig', verbose=True):
flObject (flGlyph, flLayer, flShape, flNode, flContour): Object to be update and set undo state
undoMessage (string): Message to be added in undo/history list.'''

'''
#'''
# !!! QuickFix: Issue #91 Undo... should be removed after all code is fixed
for layer in self.masters():
self.update(layer.name)
'''
self.update()
#'''
#self.update()

# - General way ---- pre 6774 worked fine!
fl6.flItems.notifyChangesApplied(undoMessage[:20], flObject, True)
Expand Down

0 comments on commit dd34d68

Please sign in to comment.