From 8483ce407a947d048de3de7dc93db188d8f44657 Mon Sep 17 00:00:00 2001 From: antisch Date: Sun, 14 Jan 2018 12:30:34 -0800 Subject: [PATCH] Fix for loading bifrost caches Fixes issue #25 --- azure_batch_maya/scripts/assets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure_batch_maya/scripts/assets.py b/azure_batch_maya/scripts/assets.py index ded9676..28ad28b 100644 --- a/azure_batch_maya/scripts/assets.py +++ b/azure_batch_maya/scripts/assets.py @@ -517,6 +517,8 @@ def _get_bifrost_caches(self, assets): cache_name = maya.get_attr(container + ".{}CacheFileName".format(cache_type.lower())) cache_path = maya.get_attr(container + ".{}CachePath".format(cache_type.lower())) cache_paths.append(os.path.join(cache_path, cache_name)) + self.pathmaps[cache_path] = utils.get_remote_file_path(cache_path) + self.pathmaps[cache_paths[-1]] = utils.get_remote_file_path(cache_paths[-1]) cache_paths = list(set(cache_paths)) for cache_path in cache_paths: for frame in range(start, end+step, step):