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

Method hasAtLeastOneChannelToProcess

Engine/Node.cpp:5381–5401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5379}
5380
5381bool
5382Node::hasAtLeastOneChannelToProcess() const
5383{
5384 std::map<int, ChannelSelector>::const_iterator foundSelector = _imp->channelsSelectors.find(-1);
5385
5386 if ( foundSelector == _imp->channelsSelectors.end() ) {
5387 return true;
5388 }
5389 if ( _imp->enabledChan[0].lock() ) {
5390 std::bitset<4> processChannels;
5391 processChannels[0] = _imp->enabledChan[0].lock()->getValue();
5392 processChannels[1] = _imp->enabledChan[1].lock()->getValue();
5393 processChannels[2] = _imp->enabledChan[2].lock()->getValue();
5394 processChannels[3] = _imp->enabledChan[3].lock()->getValue();
5395 if (!processChannels[0] && !processChannels[1] && !processChannels[2] && !processChannels[3]) {
5396 return false;
5397 }
5398 }
5399
5400 return true;
5401}
5402
5403void
5404Node::replaceCustomDataInlabel(const QString & data)

Callers 1

isIdentity_publicMethod · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
lockMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected