From 46a7909cbc0617d71e1ce22e7d1ac4c3e7b50e89 Mon Sep 17 00:00:00 2001 From: JoshQuake Date: Thu, 25 Jul 2024 14:37:17 -0700 Subject: [PATCH] strip numbers from sockets strips '.001' etc from socket names by splitting at the period and grabbing first result --- src/addons/send2ue/core/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/send2ue/core/export.py b/src/addons/send2ue/core/export.py index dcbe595a..35f8a706 100644 --- a/src/addons/send2ue/core/export.py +++ b/src/addons/send2ue/core/export.py @@ -193,7 +193,7 @@ def get_asset_sockets(asset_name, properties): if mesh_object: for child in mesh_object.children: if child.type == 'EMPTY' and child.name.startswith(f'{PreFixToken.SOCKET.value}_'): - name = utilities.get_asset_name(child.name.replace(f'{PreFixToken.SOCKET.value}_', ''), properties) + name = utilities.get_asset_name(child.name.replace(f'{PreFixToken.SOCKET.value}_', '').split('.',1)[0], properties) relative_location = utilities.convert_blender_to_unreal_location( child.matrix_local.translation )