Skip to content

Commit

Permalink
Make sure cache is notified when undo/redo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStevns committed Feb 28, 2021
1 parent 6fda21e commit efdd90a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core_lib/src/interface/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ void Editor::restoreKey()
layer = object()->getLayer(layerIndex);
addKeyFrame(layerIndex, frame);
dynamic_cast<LayerBitmap*>(layer)->getBitmapImageAtFrame(frame)->paste(&lastBackupBitmapElement->bitmapImage);
frameModified(frame);
}
if (lastBackupElement->type() == BackupElement::VECTOR_MODIF)
{
Expand All @@ -403,6 +404,7 @@ void Editor::restoreKey()
layer = object()->getLayer(layerIndex);
addKeyFrame(layerIndex, frame);
dynamic_cast<LayerVector*>(layer)->getVectorImageAtFrame(frame)->paste(lastBackupVectorElement->vectorImage);
frameModified(frame);
}
if (lastBackupElement->type() == BackupElement::SOUND_MODIF)
{
Expand Down

0 comments on commit efdd90a

Please sign in to comment.