Skip to content

Commit

Permalink
Update affixes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshQuake committed Nov 5, 2024
1 parent 1c54931 commit f1a644f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/addons/send2ue/resources/extensions/affixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit f1a644f

Please sign in to comment.