MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / convert_no_warn

Function convert_no_warn

convert_v3_to_v4.py:43–51  ·  view source on GitHub ↗
(node_type: str, v3_name: str, v4_name: str)

Source from the content-addressed store, hash-verified

41 node.attrib["BTCPP_format"] = "4"
42
43 def convert_no_warn(node_type: str, v3_name: str, v4_name: str):
44 if node.tag == v3_name:
45 node.tag = v4_name
46 elif (
47 (node.tag == node_type)
48 and ("ID" in node.attrib)
49 and (node.attrib["ID"] == v3_name)
50 ):
51 node.attrib["ID"] = v3_name
52
53 original_attrib = copy.copy(node.attrib)
54 convert_no_warn("Control", "SequenceStar", "SequenceWithMemory")

Callers 1

convert_single_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected