Skip to content

Commit

Permalink
dragon's review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Sep 11, 2024
1 parent b05065f commit 37efd5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fast64_internal/sm64/sm64_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,7 @@ def actor_names(self) -> list:
def export_locations(self) -> str | None:
names = self.actor_names
if len(names) > 1:
return f"({'/'.join(names)})"
return f"{{{'/'.join(names)}}}"
elif len(names) == 1:
return names[0]
return None
Expand All @@ -2180,22 +2180,22 @@ def draw_level_path(self, layout):

def draw_actor_path(self, layout):
if self.export_locations is None:
return
return False
decomp_path = bpy.context.scene.fast64.sm64.abs_decomp_path
if self.export_header_type == "Actor":
actor_path = decomp_path / "actors"
if not filepath_ui_warnings(layout, (actor_path / self.actor_group_name).with_suffix(".c")):
return
return False
layout.label(text=f"Actor export path: actors/{self.export_locations}/")
elif self.export_header_type == "Level":
if not directory_ui_warnings(layout, self.full_level_path):
return
return False
level_path = self.full_level_path if self.non_decomp_level else self.level_directory
layout.label(text=f"Actor export path: {level_path / self.export_locations}/")
elif self.export_header_type == "Custom":
custom_path = Path(bpy.path.abspath(self.custom_export_path))
if not directory_ui_warnings(layout, custom_path):
return
return False
layout.label(text=f"Actor export path: {custom_path / self.export_locations}/")
return True

Expand Down

0 comments on commit 37efd5b

Please # to comment.