patch for mkdirs on camera path json filepath (#2502)

fix camera path json mkdir in viewer beta
This commit is contained in:
Justin Kerr authored and GitHub committed 2023-10-10 13:09:09 -07:00
1 parent 81db1808a7
commit 1b85fb528b
1 file changed
+1
+1
View File
@@ -625,6 +625,7 @@ def populate_render_tab(
# now write the json file
json_outfile = datapath / "camera_paths" / f"{render_name_text.value}.json"
json_outfile.parent.mkdir(parents=True, exist_ok=True)
with open(json_outfile.absolute(), "w") as outfile:
json.dump(json_data, outfile)
# now show the command