浏览代码

Improved ROS2 FrameConversion script 2310->2409 (#789)

Added if statement for 'remove' override operations

Signed-off-by: Patryk Antosz <[email protected]>
Patryk Antosz 10 月之前
父节点
当前提交
0863d252f5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Gems/ROS2/Code/Source/Frame/Conversions/FrameConversion.py

+ 2 - 0
Gems/ROS2/Code/Source/Frame/Conversions/FrameConversion.py

@@ -47,6 +47,8 @@ def find_and_replace(data):
                     "m_template/Joint Name"
                     "m_template/Joint Name"
                 ]):
                 ]):
                     item["path"] = item["path"].replace("m_template", "ROS2FrameConfiguration")
                     item["path"] = item["path"].replace("m_template", "ROS2FrameConfiguration")
+                if item["op"] == "remove" and "ROS2FrameComponent" in item["path"]:
+                    item["path"] = item["path"].replace("ROS2FrameComponent", "ROS2FrameEditorComponent")
 
 
             for key, value in item.items():
             for key, value in item.items():
                 search_for_components(value, foundComponents, insidePatches)
                 search_for_components(value, foundComponents, insidePatches)