Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshQuake committed Jul 24, 2024
1 parent 3066af2 commit 57447a6
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,17 @@ def pre_groom_export(self, asset_data, properties):
"""

if self.use_collections_as_folders:
print('GROOOM')
asset_type = asset_data.get('_asset_type')
if asset_type and asset_type in [UnrealTypes.GROOM]:
object_name = asset_data.get('_object_name')
if object_name:
scene_object = bpy.data.objects.get(object_name)

asset_name = utilities.get_asset_name(object_name, properties)

_, file_extension = os.path.splitext(asset_data.get('file_path'))
export_path = self.get_full_export_path(properties, UnrealTypes.GROOM, scene_object)
print(export_path)
file_name_with_extension = f'{asset_name}{file_extension}'
file_path = os.path.join(export_path, file_name_with_extension)
print(file_path)
self.update_asset_data({
'file_path': file_path
})
Expand Down

0 comments on commit 57447a6

Please sign in to comment.