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

Method canOthersConnectToThisNode

Engine/Node.cpp:5631–5648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5629}
5630
5631bool
5632Node::canOthersConnectToThisNode() const
5633{
5634 if ( dynamic_cast<Backdrop*>( _imp->effect.get() ) ) {
5635 return false;
5636 } else if ( dynamic_cast<GroupOutput*>( _imp->effect.get() ) ) {
5637 return false;
5638 } else if ( _imp->effect->isWriter() && (_imp->effect->getSequentialPreference() == eSequentialPreferenceOnlySequential) ) {
5639 return false;
5640 }
5641 ///In debug mode only allow connections to Writer nodes
5642# ifdef DEBUG
5643
5644 return dynamic_cast<const ViewerInstance*>( _imp->effect.get() ) == NULL;
5645# else // !DEBUG
5646 return dynamic_cast<const ViewerInstance*>( _imp->effect.get() ) == NULL /* && !_imp->effect->isWriter()*/;
5647# endif // !DEBUG
5648}
5649
5650void
5651Node::setNodeIsRenderingInternal(std::list<NodeWPtr>& markedNodes)

Callers 2

canConnectInputMethod · 0.80

Calls 3

getMethod · 0.45
isWriterMethod · 0.45

Tested by

no test coverage detected