Fix #104723: Freestyle SVG output ensure path exists #104832

Merged
YimingWu merged 1 commits from ChengduLittleA/blender-addons:fix-freestyle-svg into main 2023-08-11 05:42:06 +02:00

View File

@ -157,7 +157,9 @@ def create_path(scene):
frame = "{:04d}".format(scene.frame_current) frame = "{:04d}".format(scene.frame_current)
else: else:
frame = "{:04d}-{:04d}".format(scene.frame_start, scene.frame_end) frame = "{:04d}-{:04d}".format(scene.frame_start, scene.frame_end)
os.makedirs(dirname, exist_ok=True)
return os.path.join(dirname, basename + frame + ".svg") return os.path.join(dirname, basename + frame + ".svg")