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

Method isMaskChannelKnob

Engine/Node.cpp:4370–4380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4368}
4369
4370int
4371Node::isMaskChannelKnob(const KnobI* knob) const
4372{
4373 for (std::map<int, MaskSelector >::const_iterator it = _imp->maskSelectors.begin(); it != _imp->maskSelectors.end(); ++it) {
4374 if (it->second.channel.lock().get() == knob) {
4375 return it->first;
4376 }
4377 }
4378
4379 return -1;
4380}
4381
4382bool
4383Node::isMaskEnabled(int inputNb) const

Callers 1

exportKnobValuesFunction · 0.80

Calls 4

beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected