MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / initialize

Method initialize

Engine/NodeGroupSerialization.cpp:44–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42#include <SequenceParsing.h> // for removePath
43
44NATRON_NAMESPACE_ENTER
45
46void
47NodeCollectionSerialization::initialize(const NodeCollection& group)
48{
49 NodesList nodes;
50
51 group.getActiveNodes(&nodes);
52
53 _serializedNodes.clear();
54
55 for (NodesList::iterator it = nodes.begin(); it != nodes.end(); ++it) {
56 if ( !(*it)->getParentMultiInstance() && (*it)->isPartOfProject() ) {
57 NodeSerializationPtr state = std::make_shared<NodeSerialization>(*it);
58 _serializedNodes.push_back(state);
59 }
60 }
61}
62
63static QString lookForFileRecursively(const QString& dirPath, const QString& filenameUnPathed)
64{

Callers

nothing calls this directly

Calls 7

getActiveNodesMethod · 0.80
isPartOfProjectMethod · 0.80
clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected