Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send2UE - Fixed Affixes Error With Import Materials Disabled #106

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/addons/send2ue/resources/extensions/affixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def add_affixes():
)
else:
append_affix(mesh_object, properties.extensions.affixes.static_mesh_name_affix)

for slot in mesh_object.material_slots:
if slot.material:
append_affix(slot.material, properties.extensions.affixes.material_name_affix)
Expand Down Expand Up @@ -72,7 +72,7 @@ def remove_affixes():
discard_affix(mesh_object, properties.extensions.affixes.skeletal_mesh_name_affix)
if old_mesh_object_name == mesh_object.name:
break

for slot in mesh_object.material_slots:
discard_affix(slot.material, properties.extensions.affixes.material_name_affix)

Expand Down Expand Up @@ -352,7 +352,7 @@ def post_operation(self, properties):
if self.auto_remove_asset_name_affixes:
remove_affixes()

if self.auto_add_asset_name_affixes:
if properties.import_materials_and_textures and self.auto_add_asset_name_affixes:
restore_texture_paths()

def pre_validations(self, properties):
Expand Down