| 1723 | |
| 1724 | |
| 1725 | bool |
| 1726 | Node::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 |
nothing calls this directly
no test coverage detected