MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / copyNodeGraph

Method copyNodeGraph

source/MaterialXGraphEditor/Graph.cpp:1582–1591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1580}
1581
1582void Graph::copyNodeGraph(UiNodePtr origGraph, UiNodePtr copyGraph)
1583{
1584 copyGraph->getNodeGraph()->copyContentFrom(origGraph->getNodeGraph());
1585 std::vector<mx::InputPtr> inputs = copyGraph->getNodeGraph()->getActiveInputs();
1586 for (mx::InputPtr input : inputs)
1587 {
1588 std::string newName = _graphDoc->createValidChildName(input->getName());
1589 input->setName(newName);
1590 }
1591}
1592
1593void Graph::copyInputs()
1594{

Callers

nothing calls this directly

Calls 5

copyContentFromMethod · 0.80
getNodeGraphMethod · 0.80
getActiveInputsMethod · 0.80
getNameMethod · 0.45
setNameMethod · 0.45

Tested by

no test coverage detected