MCPcopy Create free account
hub / github.com/BobbyAnguelov/Esoterica / DestroyNode

Method DestroyNode

Code/EngineTools/NodeGraph/NodeGraph_BaseGraph.cpp:504–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502 {
503 BaseNode* pNode = const_cast<BaseNode*>( nodeInstance.Get() );
504
505 if ( pNode->HasChildGraph() )
506 {
507 auto pFoundGraph = pNode->GetChildGraph()->FindGraph( graphID );
508 if ( pFoundGraph != nullptr )
509 {
510 return pFoundGraph;
511 }
512 }
513
514 if ( pNode->HasSecondaryGraph() )
515 {
516 auto pFoundGraph = pNode->GetSecondaryGraph()->FindGraph( graphID );
517 if ( pFoundGraph != nullptr )
518 {
519 return pFoundGraph;
520 }
521 }
522 }
523
524 return nullptr;
525 }
526
527 void BaseGraph::FindAllNodesOfType( TypeSystem::TypeID typeID, TInlineVector<BaseNode*, 20>& results, SearchMode mode, SearchTypeMatch typeMatch ) const
528 {
529 for ( TTypeInstance<BaseNode> const& nodeInstance : m_nodes )
530 {
531 BaseNode* pNode = const_cast<BaseNode*>( nodeInstance.Get() );

Callers 3

DestroySelectedNodesMethod · 0.80
HandleInputMethod · 0.80
DestroyMethod · 0.80

Calls 7

DestroyInstanceMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetMethod · 0.45
GetIDMethod · 0.45
ClearMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected