bool MoveEdgesCommand::performUndo() { document().brushesWillChange(m_brushes); restoreSnapshots(m_brushes); document().brushesDidChange(m_brushes); m_edges = m_originalEdges; return true; }
bool SplitEdgesCommand::performUndo() { document().brushesWillChange(m_brushes); restoreSnapshots(m_brushes); document().brushesDidChange(m_brushes); m_vertices.clear(); return true; }
bool MoveFacesCommand::performUndo() { m_handleManager.remove(m_brushes); document().brushesWillChange(m_brushes); restoreSnapshots(m_brushes); document().brushesDidChange(m_brushes); m_handleManager.add(m_brushes); m_handleManager.selectFaceHandles(m_facesBefore); return true; }
bool MoveVerticesCommand::performUndo() { document().brushesWillChange(m_brushes); restoreSnapshots(m_brushes); document().brushesDidChange(m_brushes); m_vertices.clear(); BrushVerticesMap::const_iterator it, end; for (it = m_brushVertices.begin(), end = m_brushVertices.end(); it != end; ++it) { const Vec3f::List& vertices = it->second; m_vertices.insert(vertices.begin(), vertices.end()); } return true; }
bool SnapVerticesCommand::performUndo() { document().brushesWillChange(m_brushes); restoreSnapshots(m_brushes); document().brushesDidChange(m_brushes); return true; }