From f1a644faadf631c5419f10e56d3f3abe8dfa16c4 Mon Sep 17 00:00:00 2001 From: JoshQuake Date: Tue, 5 Nov 2024 12:07:02 -0800 Subject: [PATCH] Update affixes.py --- .../send2ue/resources/extensions/affixes.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/addons/send2ue/resources/extensions/affixes.py b/src/addons/send2ue/resources/extensions/affixes.py index 1be94146..3f8d2e9c 100644 --- a/src/addons/send2ue/resources/extensions/affixes.py +++ b/src/addons/send2ue/resources/extensions/affixes.py @@ -221,13 +221,14 @@ def restore_texture_paths(): for mesh_object in mesh_objects: texture_images = get_texture_images(mesh_object) - for index, image in enumerate(texture_images): - original_path = os.path.join( AffixesExtension.images_original_paths[index], image.name ) - - if not os.path.exists(original_path): - shutil.copy(image.filepath_from_user(), original_path) - - image.filepath = original_path + for image_index, image in enumerate(texture_images): + if image.source == 'FILE': + original_path = os.path.join( AffixesExtension.images_original_paths[image_index], image.name ) + + if not os.path.exists(original_path): + shutil.copy(image.filepath_from_user(), original_path) + + image.filepath = original_path def check_asset_affixes(self, context=None): """