Skip to content

Commit

Permalink
use enumerate for iteration and update copying.md
Browse files Browse the repository at this point in the history
  • Loading branch information
YuviTz1 authored and heinezen committed Jun 26, 2022
1 parent f8c5cd2 commit 57b679c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions copying.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ _the openage authors_ are:
| Damien Lejay | dlejay | lejay à paracompact dawt space |
| Talha Aamir | sarcxd | sarcxd à gmail dawt com |
| Matthias Geiger | CountOmega | matthias dawt geiger1024 à outlook dawt com |
| Yuvraj Tetarwal | YuviTz1 | yuvi56789 à gmail dawt com |

If you're a first-time committer, add yourself to the above list. This is not
just for legal reasons, but also to keep an overview of all those nicknames.
Expand Down
6 changes: 2 additions & 4 deletions openage/convert/processor/export/media_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ def export(
export_func = MediaExporter._export_blend
print("-- Exporting blend files...")

export_count = 1
total_count = len(cur_export_requests)
for request in cur_export_requests:
for count, request in enumerate(cur_export_requests, start = 1):
export_func(request, sourcedir, exportdir, **kwargs)
print(f"-- Files done: {format_progress(export_count, total_count)}",
print(f"-- Files done: {format_progress(count, total_count)}",
end = "\r", flush = True)
export_count += 1

if args.debug_info > 5:
cachedata = {}
Expand Down

0 comments on commit 57b679c

Please sign in to comment.