Skip to content

Commit

Permalink
Merge pull request #11 from ynput/bugfix/stop-redownload-on-launch
Browse files Browse the repository at this point in the history
Stop redownloading USD every time
  • Loading branch information
antirotor authored Jun 13, 2024
2 parents 73baa1b + 5f2723d commit 04227dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions client/ayon_usd/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os

from ayon_core.modules import AYONAddon, ITrayModule
from .utils import is_usd_download_needed, get_downloaded_usd_root
from .utils import is_usd_download_needed
from .version import __version__

USD_ADDON_DIR = os.path.dirname(os.path.abspath(__file__))
Expand Down Expand Up @@ -38,7 +38,6 @@ def tray_start(self):
super(USDAddon, self).tray_start()
download_usd = is_usd_download_needed()
if not download_usd:
print(f"get_downloaded_usd_root: {get_downloaded_usd_root()}")
return

from .download_ui import show_download_window
Expand Down
3 changes: 2 additions & 1 deletion client/ayon_usd/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ def get_downloaded_usd_root() -> Union[str, None]:
if _USDOptions.downloaded_root is not NOT_SET:
return _USDOptions.downloaded_root

server_usd_info = _find_file_info("usd", get_server_files_info())
server_usd_info = _find_file_info(
"ayon_usd", get_server_files_info())
if not server_usd_info:
return None

Expand Down

0 comments on commit 04227dd

Please sign in to comment.