Skip to content

Commit

Permalink
Placeholders - Create folders if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
p2or committed Jun 16, 2024
1 parent ac1f74b commit 98873d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loom.py
Original file line number Diff line number Diff line change
Expand Up @@ -3888,13 +3888,13 @@ def start_render(self, scene, frame, silent=False):
print("Skipped frame: {} (already exists)".format(frame))
else:
if rndr.use_placeholder and not os.path.isfile(rndr.filepath):
os.makedirs(os.path.dirname(rndr.filepath), exist_ok=True)
open(rndr.filepath, 'a').close()

if silent:
bpy.ops.render.render(write_still=True)
else:
bpy.ops.render.render("INVOKE_DEFAULT", write_still=True)

if frame not in self._rendered_frames:
self._rendered_frames.append(frame)

Expand Down

0 comments on commit 98873d4

Please sign in to comment.