| 65 | } |
| 66 | |
| 67 | std::list<Effect*> |
| 68 | Group::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 | |
| 97 | NATRON_PYTHON_NAMESPACE_EXIT |
| 98 | NATRON_NAMESPACE_EXIT |
nothing calls this directly
no test coverage detected