MCPcopy Create free account
hub / github.com/PixarAnimationStudios/OpenUSD / DisconnectInput

Method DisconnectInput

pxr/exec/exec/program.cpp:501–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501void
502Exec_Program::DisconnectInput(VdfInput *const input)
503{
504 TRACE_FUNCTION();
505
506 _inputsRequiringRecompilation.insert(input);
507
508 // All source nodes of the input's connections are now potentially isolated.
509 // Iterate over a copy of the connections, because the original vector will
510 // be modified by VdfNetwork::Disconnect.
511 const VdfConnectionVector connections = input->GetConnections();
512 for (VdfConnection *const connection : connections) {
513 _potentiallyIsolatedNodes.insert(&connection->GetSourceNode());
514 _network.Disconnect(connection);
515 }
516}
517
518std::unique_ptr<VdfIsolatedSubnetwork>
519Exec_Program::CreateIsolatedSubnetwork()

Callers 1

operator()Method · 0.80

Calls 3

DisconnectMethod · 0.80
insertMethod · 0.45
GetConnectionsMethod · 0.45

Tested by

no test coverage detected