Skip to content

Commit

Permalink
fix UDIM collect - version 0.1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
mweibel committed Jul 21, 2023
1 parent 28a7f87 commit ff576e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helio_blender_addon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
bl_info = {
"name": "Helio Cloud Rendering",
"blender": (3, 20, 0),
"version": (0, 1, 14),
"version": (0, 1, 15),
"category": "Render",
"tracker_url": "https://github.com/helio/blender-addon/issues"
}
Expand Down
8 changes: 7 additions & 1 deletion helio_blender_addon/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,13 @@ def invoke(self, context, event):
log.debug("all paths: %s", paths)

for path in paths:
self._steps.append(('copy', path))
if '<UDIM>' in path:
print(path, Path(path).parent)
tp = Path(path)
for p in tp.parent.glob(tp.name.replace('<UDIM>', '*')):
self._steps.append(('copy', str(p)))
else:
self._steps.append(('copy', path))

self._steps.append(('relink', project_path))
self._steps.append(('resave', project_filepath))
Expand Down

0 comments on commit ff576e3

Please sign in to comment.