Skip to content

Commit

Permalink
Requested Change + extra checks for ui and code clarity
Browse files Browse the repository at this point in the history
Co-Authored-By: Dragorn421 <[email protected]>
  • Loading branch information
Lilaa3 and Dragorn421 committed Oct 9, 2024
1 parent 6308108 commit d200e34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fast64_internal/sm64/sm64_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,7 @@ def draw_props(self, layout):
# pathing for gfx/col exports
prop_split(box, self, "export_header_type", "Export Type")

if self.export_header_type == "Custom":
if self.export_header_type == "Custom" and bpy.context.scene.saveTextures:
prop_split(box, self, "custom_export_path", "Custom Path")
prop_split(box, self, "custom_include_directory", "Texture Include Directory")

Expand Down Expand Up @@ -2283,14 +2283,14 @@ def draw_props(self, layout):
elif self.export_header_type == "Actor":
if not self.draw_actor_path(info_box):
return
elif bpy.context.scene.saveTextures:
elif self.export_header_type == "Custom" and bpy.context.scene.saveTextures:
if self.custom_include_directory:
info_box.label(text=f'Include directory "{self.custom_include_directory}"')
else:
actor_names = self.actor_names
joined = ",".join(self.actor_names)
if len(actor_names) > 1:
joined = f"{{{joined}}}"
joined = "{" f"{joined}" "}"
directory = f"{Path(bpy.path.abspath(self.custom_export_path)).name}/{joined}"
info_box.label(text=f'Empty include directory, defaults to "{directory}"')

Expand Down

0 comments on commit d200e34

Please sign in to comment.