Esempio n. 1
0
    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
    }
Esempio n. 2
0
 void start() {
     _redoStack.clear();
     if (_undoStack.size() == _undoLevels) {
         _undoStack.pop_front();
     }
     startUndo();
     trackersBegin();
 }