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

Method initNodeName

Engine/NodeGroup.cpp:535–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533} // NodeCollection::checkNodeName
534
535void
536NodeCollection::initNodeName(const std::string& pluginLabel,
537 std::string* nodeName)
538{
539 std::string baseName(pluginLabel);
540
541 if ( (baseName.size() > 3) &&
542 ( baseName[baseName.size() - 1] == 'X') &&
543 ( baseName[baseName.size() - 2] == 'F') &&
544 ( baseName[baseName.size() - 3] == 'O') ) {
545 baseName = baseName.substr(0, baseName.size() - 3);
546 }
547
548 checkNodeName(0, baseName, true, false, nodeName);
549}
550
551bool
552NodeCollection::connectNodes(int inputNumber,

Callers 2

initNodeScriptNameMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected