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

Method updateEffectLabelKnob

Engine/Node.cpp:5618–5629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5616}
5617
5618void
5619Node::updateEffectLabelKnob(const QString & name)
5620{
5621 if (!_imp->effect) {
5622 return;
5623 }
5624 KnobIPtr knob = getKnobByName(kNatronOfxParamStringSublabelName);
5625 KnobString* strKnob = dynamic_cast<KnobString*>( knob.get() );
5626 if (strKnob) {
5627 strKnob->setValue( name.toStdString() );
5628 }
5629}
5630
5631bool
5632Node::canOthersConnectToThisNode() const

Callers 1

Calls 3

toStdStringMethod · 0.80
getMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected