[Blender_Kitsu] Publish VSE Edit as Revision on Kitsu #7

Merged
Nick Alberelli merged 28 commits from :feature/upload_render_to_kitsu into master 2023-04-17 19:02:15 +02:00
Showing only changes of commit 44397b63af - Show all commits

View File

@ -4,6 +4,24 @@ from blender_kitsu import (
prefs, prefs,
) )
@contextlib.contextmanager
def override_render_path(self, context, render_file_path):
"""Overrides the render settings for playblast creation"""
rd = context.scene.render
# Filepath.
filepath = rd.filepath
try:
# Filepath.
rd.filepath = render_file_path
yield
finally:
# Filepath.
rd.filepath = filepath
@contextlib.contextmanager @contextlib.contextmanager
def override_render_settings(self, context, render_file_path): def override_render_settings(self, context, render_file_path):
"""Overrides the render settings for playblast creation""" """Overrides the render settings for playblast creation"""