MCPcopy Create free account
hub / github.com/begla/Intrinsic / cloneNode

Method cloneNode

IntrinsicEd/src/IntrinsicEdNodeViewTreeWidget.cpp:442–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void IntrinsicEdNodeViewTreeWidget::cloneNode(QTreeWidgetItem* p_Node)
443{
444 QTreeWidgetItem* currIt = currentItem();
445 Components::NodeRef currentNode = _itemToNodeMap[currIt];
446
447 Components::NodeRef nodeRef = World::cloneNodeFull(currentNode);
448 Entity::EntityRef entityRef = Components::NodeManager::_entity(nodeRef);
449 GameStates::Editing::_currentlySelectedEntity = entityRef;
450
451 onPopulateNodeTree();
452}
453
454void IntrinsicEdNodeViewTreeWidget::onDeleteNode()
455{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected