Skip to content

Commit

Permalink
strip numbers from sockets (#46)
Browse files Browse the repository at this point in the history
Strips numbers trailing a period from socket names
  • Loading branch information
JoshQuake authored Jul 25, 2024
1 parent e44b3a4 commit 352c2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addons/send2ue/core/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 352c2d1

Please sign in to comment.