コード例 #1
0
 bool MoveEdgesCommand::performUndo() {
     document().brushesWillChange(m_brushes);
     restoreSnapshots(m_brushes);
     document().brushesDidChange(m_brushes);
     m_edges = m_originalEdges;
     return true;
 }
コード例 #2
0
 bool SplitEdgesCommand::performUndo() {
     document().brushesWillChange(m_brushes);
     restoreSnapshots(m_brushes);
     document().brushesDidChange(m_brushes);
     
     m_vertices.clear();
     return true;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
        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;
        }
コード例 #5
0
 bool SnapVerticesCommand::performUndo() {
     document().brushesWillChange(m_brushes);
     restoreSnapshots(m_brushes);
     document().brushesDidChange(m_brushes);
     return true;
 }