[Blender Export][Fixed] Make sure output subdirs exists

- Blender seems to be able to create just 1 level
This commit is contained in:
Salvador E. Tropea 2024-01-05 07:28:40 -03:00
parent ab17559a29
commit d5fa776dbf
1 changed files with 1 additions and 0 deletions

View File

@ -655,6 +655,7 @@ class Blender_ExportOptions(BaseOptions):
raise KiPlotConfigurationError('Repeated name (use `file_id`): '+name)
cmd.append(name)
names.add(name)
os.makedirs(os.path.dirname(name), exist_ok=True)
order += 1
cmd.extend(['--scene', f.name])
cmd.append(pcb3d_file)