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

Method getChildren

Engine/PyNodeGroup.cpp:67–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67std::list<Effect*>
68Group::getChildren() const
69{
70 std::list<Effect*> ret;
71
72 if ( !_collection.lock() ) {
73 return ret;
74 }
75
76 NodesList nodes = _collection.lock()->getNodes();
77
78 for (NodesList::iterator it = nodes.begin(); it != nodes.end(); ++it) {
79 if ( (*it)->isActivated() && (*it)->getParentMultiInstanceName().empty() ) {
80
81
82#if NATRON_VERSION_ENCODED < NATRON_VERSION_ENCODE(3,0,0)
83 // In Natron 2, the meta Read node is NOT a Group, hence the internal decoder node is not a child of the Read node.
84 // As a result of it, if the user deleted the meta Read node, the internal decoder is node destroyed
85 if ((*it)->getIOContainer()) {
86 continue;
87 }
88#endif
89
90 ret.push_back( new Effect(*it) );
91 }
92 }
93
94 return ret;
95}
96
97NATRON_PYTHON_NAMESPACE_EXIT
98NATRON_NAMESPACE_EXIT

Callers

nothing calls this directly

Calls 9

getNodesMethod · 0.80
emptyMethod · 0.80
getIOContainerMethod · 0.80
lockMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
isActivatedMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected