Fix character error

This commit is contained in:
2024-06-06 22:11:22 +02:00
parent c61ba477ad
commit cfb7a8b514
+1 -3
View File
@@ -123,14 +123,12 @@ Requiert your blend file are write on your hard-drive."""
def get_asset_type(self) -> Path: def get_asset_type(self) -> Path:
"""Look the file path, to understand if the asset are a Character, Buildings or Props""" """Look the file path, to understand if the asset are a Character, Buildings or Props"""
abs_blend_path = Path(bpy.data.filepath) abs_blend_path = Path(bpy.data.filepath)
print(f'[Pipeline] Get blend file path "{abs_blend_path}"')
print(f'[Pipeline] Convert to List "{abs_blend_path.parts}"')
if 'Buildings' in abs_blend_path.parts: if 'Buildings' in abs_blend_path.parts:
print(f'[Pipeline] Export here "{self.path.buildings}"') print(f'[Pipeline] Export here "{self.path.buildings}"')
return self.path.buildings return self.path.buildings
elif 'Pros' in abs_blend_path.parts: elif 'Props' in abs_blend_path.parts:
print(f'[Pipeline] Export here "{self.path.props}"') print(f'[Pipeline] Export here "{self.path.props}"')
return self.path.props return self.path.props