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

Method hasSequentialOnlyNodeUpstream

Engine/NodeInputs.cpp:1725–1747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1723
1724
1725bool
1726Node::hasSequentialOnlyNodeUpstream(std::string & nodeName) const
1727{
1728 ///Just take into account sequentiallity for writers
1729 if ( (_imp->effect->getSequentialPreference() == eSequentialPreferenceOnlySequential) && _imp->effect->isWriter() ) {
1730 nodeName = getScriptName_mt_safe();
1731
1732 return true;
1733 } else {
1734 QMutexLocker l(&_imp->inputsMutex);
1735
1736 for (InputsV::iterator it = _imp->inputs.begin(); it != _imp->inputs.end(); ++it) {
1737 NodePtr input = it->lock();
1738 if ( input && input->isActivated() && input->hasSequentialOnlyNodeUpstream(nodeName) && input->getEffectInstance()->isWriter() ) {
1739 nodeName = input->getScriptName_mt_safe();
1740
1741 return true;
1742 }
1743 }
1744
1745 return false;
1746 }
1747}
1748
1749//////////////////////////////////
1750

Callers

nothing calls this directly

Calls 8

getEffectInstanceMethod · 0.80
isWriterMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
isActivatedMethod · 0.45
getScriptName_mt_safeMethod · 0.45

Tested by

no test coverage detected