Don't kill entire OpenGL cache on undo.

The comment regarding bitmaps was true for one more month in 2018, but
hasn't been true for the last 3 years, and clearing the cache is a huge
performance hit.
This commit is contained in:
Jeff Young 2022-02-22 22:46:12 +00:00
parent 41f6e634c6
commit d58427a519
1 changed files with 0 additions and 4 deletions

View File

@ -350,9 +350,6 @@ void SCH_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList )
}
}
// Bitmaps are cached in Opengl: clear the cache, because
// the cache data can be invalid
GetCanvas()->GetView()->RecacheAllItems();
GetCanvas()->GetView()->ClearHiddenFlags();
}
@ -383,7 +380,6 @@ void SCH_EDIT_FRAME::RollbackSchematicFromUndo()
m_toolManager->GetTool<EE_SELECTION_TOOL>()->RebuildSelection();
}
SyncView();
GetCanvas()->Refresh();
}