MCPcopy Create free account
hub / github.com/MrKepzie/Natron / DecloneMultipleNodesCommand

Method DecloneMultipleNodesCommand

Gui/NodeGraphUndoRedo.cpp:692–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692DecloneMultipleNodesCommand::DecloneMultipleNodesCommand(NodeGraph* graph,
693 const std::list<NodeGuiPtr > & nodes,
694 QUndoCommand *parent)
695 : QUndoCommand(parent)
696 , _nodes()
697 , _graph(graph)
698{
699 for (std::list<NodeGuiPtr >::const_iterator it = nodes.begin(); it != nodes.end(); ++it) {
700 NodeToDeclone n;
701 n.node = *it;
702 n.master = (*it)->getNode()->getMasterNode();
703 assert( n.master.lock() );
704 _nodes.push_back(n);
705 }
706}
707
708DecloneMultipleNodesCommand::~DecloneMultipleNodesCommand()
709{

Callers

nothing calls this directly

Calls 6

getMasterNodeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getNodeMethod · 0.45
lockMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected