Skip to content

Commit

Permalink
Merge pull request #3 from RichysHub/fix_output_option
Browse files Browse the repository at this point in the history
Complete -o implementation
  • Loading branch information
theFroh authored Oct 20, 2017
2 parents 8a791a3 + 84ab2f0 commit a37b9f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion objuvpacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def main():
obj_local_path = os.path.basename(args.obj)
obj_name = os.path.splitext(os.path.basename(args.obj))[0]

if not args.output: # default to a reasonable name
if args.output:
output_name = args.output
else: # default to a reasonable name
output_name = obj_name + "_packed"

# we read the entire obj both to check for mtl now, and for processing later
Expand Down

0 comments on commit a37b9f1

Please sign in to comment.