| 679 | } |
| 680 | |
| 681 | DecloneMultipleNodesCommand::DecloneMultipleNodesCommand(NodeGraph* graph, |
| 682 | const std::list<NodeGuiPtr> & nodes, |
| 683 | QUndoCommand *parent) |
| 684 | : QUndoCommand(parent) |
| 685 | , _nodes() |
| 686 | , _graph(graph) |
| 687 | { |
| 688 | for (std::list<NodeGuiPtr> ::const_iterator it = nodes.begin(); it != nodes.end(); ++it) { |
| 689 | NodeToDeclone n; |
| 690 | n.node = *it; |
| 691 | n.master = (*it)->getNode()->getMasterNode(); |
| 692 | assert( n.master.lock() ); |
| 693 | _nodes.push_back(n); |
| 694 | } |
| 695 | setText( tr("Declone node(s)") ); |
| 696 | } |
| 697 | |
| 698 | DecloneMultipleNodesCommand::~DecloneMultipleNodesCommand() |
| 699 | { |