Skip to content

Commit

Permalink
Fix: user gives multiple sizes but texture files download only one size
Browse files Browse the repository at this point in the history
  • Loading branch information
agmmnn committed Sep 26, 2021
1 parent abed346 commit 3982bda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion polydown/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
from .cli import polycli

__version__ = "0.1"
__version__ = "0.2.1"

ap = argparse.ArgumentParser()
ap.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion polydown/poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def main(self):
file_js = json.loads(self.s.get(files_url).content)
k_list = [i for i in file_js["blend"]]
k_list.sort(key=lambda fname: int(fname.split("k")[0]))
include = file_js["blend"]["1k"]["blend"]["include"]

def create_subfolder(k):
# downfolder>ArmChair_01>ArmChair_01_1k>textures
Expand All @@ -61,6 +60,7 @@ def create_subfolder(k):

for k in k_list if self.down_sizes == [] else self.down_sizes:
if k in k_list:
include = file_js["blend"][k]["blend"]["include"]
# download blend file
create_subfolder(k)
bl_url = file_js["blend"][k]["blend"]["url"]
Expand Down

0 comments on commit 3982bda

Please sign in to comment.