Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop redownloading USD every time #11

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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