void clear() { mark_undoables(0); _undoStack.clear(); _redoStack.clear(); trackersClear(); // greebo: This is called on map shutdown, so don't clear the observers, // there are some "persistent" observers like EntityInspector and ShaderClipboard }
void start() { _redoStack.clear(); if (_undoStack.size() == _undoLevels) { _undoStack.pop_front(); } startUndo(); trackersBegin(); }