Blender Kitsu: Move Render Review into Blender Kitsu #296

Merged
Showing only changes of commit dbf307aad4 - Show all commits

View File

@ -406,13 +406,6 @@ class RR_OT_setup_review_workspace(bpy.types.Operator):
def execute(self, context: bpy.types.Context) -> Set[str]:
render_dir = context.scene.rr.render_dir
if not Path(render_dir).exists():
self.report(
{"ERROR"},
f"Farm Output Directory {render_dir} doesn't exist, check Add-On preferences",
)
return {"CANCELLED"}
scripts_path = bpy.utils.script_paths(use_user=False)[0]
template_path = "/startup/bl_app_templates_system/Video_Editing/startup.blend"
@ -425,6 +418,13 @@ class RR_OT_setup_review_workspace(bpy.types.Operator):
# Pre-fill render directory with farm output shots directory.
addon_prefs = prefs.addon_prefs_get(bpy.context)
context.scene.rr.render_dir = addon_prefs.farm_output_dir + "/shots"
if not Path(render_dir).exists():
self.report(
{"ERROR"},
f"Farm Output Directory {render_dir} doesn't exist, check Add-On preferences",
)
return {"CANCELLED"}
# Init sqe.
if not context.scene.sequence_editor: