MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / GetParentNode

Function GetParentNode

bt_editor/utils.cpp:486–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486QtNodes::Node *GetParentNode(QtNodes::Node *node)
487{
488 using namespace QtNodes;
489 auto conn_in = node->nodeState().connections(PortType::In, 0);
490 if( conn_in.size() == 0)
491 {
492 return nullptr;
493 }
494 else{
495 return conn_in.begin()->second->getNode(PortType::Out);
496 }
497}
498
499void CleanPreviousModels(QWidget *parent,
500 NodeModels &prev_models,

Callers 1

onSmartRemoveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected