| 6865 | } |
| 6866 | |
| 6867 | void |
| 6868 | Node::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 | |
| 6895 | void |
| 6896 | Node::Implementation::runOnNodeDeleteCB() |
no test coverage detected