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

Method checkIfNodeNameExists

Engine/NodeGroup.cpp:935–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933}
934
935bool
936NodeCollection::checkIfNodeNameExists(const std::string & n,
937 const Node* caller) const
938{
939 QMutexLocker k(&_imp->nodesMutex);
940
941 for (NodesList::const_iterator it = _imp->nodes.begin(); it != _imp->nodes.end(); ++it) {
942 if ( (it->get() != caller) && (*it)->isActivated() && ( (*it)->getScriptName_mt_safe() == n ) ) {
943 return true;
944 }
945 }
946
947 return false;
948}
949
950static void
951recomputeFrameRangeForAllReadersInternal(NodeCollection* group,

Callers 1

initNodeScriptNameMethod · 0.80

Calls 5

beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45
isActivatedMethod · 0.45
getScriptName_mt_safeMethod · 0.45

Tested by

no test coverage detected