Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Fix frame number recognition
Browse files Browse the repository at this point in the history
- Previously 1005 would fail due to a "5" being present. This would only be noticable if the start frame used for detection included a digit that was not 0, 1, 2, 3 or 4.
  • Loading branch information
BigRoy committed Oct 5, 2022
1 parent b7bd66e commit 7d2a6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openpype/hosts/maya/plugins/load/load_yeti_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def get_cache_node_filepath(self, root, node_name):
"""

name = node_name.replace(":", "_")
pattern = r"^({name})(\.[0-4]+)?(\.fur)$".format(name=re.escape(name))
pattern = r"^({name})(\.[0-9]+)?(\.fur)$".format(name=re.escape(name))

files = [fname for fname in os.listdir(root) if re.match(pattern,
fname)]
Expand Down

0 comments on commit 7d2a6bf

Please sign in to comment.