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

Method runOnNodeCreatedCB

Engine/Node.cpp:6867–6893  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6865}
6866
6867void
6868Node::Implementation::runOnNodeCreatedCB(bool userEdited)
6869{
6870 if (!isPartOfProject) {
6871 return;
6872 }
6873 std::string cb = _publicInterface->getApp()->getProject()->getOnNodeCreatedCB();
6874 NodeCollectionPtr group = _publicInterface->getGroup();
6875
6876 if (!group) {
6877 return;
6878 }
6879 if ( !cb.empty() ) {
6880 runOnNodeCreatedCBInternal(cb, userEdited);
6881 }
6882
6883 NodeGroup* isGroup = dynamic_cast<NodeGroup*>( group.get() );
6884 KnobStringPtr nodeCreatedCbKnob = nodeCreatedCallback.lock();
6885 if (!nodeCreatedCbKnob && isGroup) {
6886 cb = isGroup->getNode()->getAfterNodeCreatedCallback();
6887 } else if (nodeCreatedCbKnob) {
6888 cb = nodeCreatedCbKnob->getValue();
6889 }
6890 if ( !cb.empty() ) {
6891 runOnNodeCreatedCBInternal(cb, userEdited);
6892 }
6893}
6894
6895void
6896Node::Implementation::runOnNodeDeleteCB()

Callers 2

activateMethod · 0.80
loadMethod · 0.80

Calls 10

getOnNodeCreatedCBMethod · 0.80
getProjectMethod · 0.80
emptyMethod · 0.80
getAppMethod · 0.45
getGroupMethod · 0.45
getMethod · 0.45
lockMethod · 0.45
getNodeMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected