Skip to content

Commit

Permalink
fix(storage): add ocio support
Browse files Browse the repository at this point in the history
  • Loading branch information
beatreichenbach committed May 31, 2023
1 parent aae1460 commit 5cdf593
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions realflare/gui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def check_save(self) -> bool:

def save(self) -> bool:
storage.settings = self.editor.settings()
storage.update_ocio()
result = storage.save_settings()
if result:
self.button_box.hide()
Expand Down
5 changes: 5 additions & 0 deletions realflare/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def settings(self) -> Settings:
except ValueError:
data = {}
self._settings = cast(Settings, data)
self.update_ocio()
return self._settings

@settings.setter
Expand Down Expand Up @@ -169,3 +170,7 @@ def parse_output_path(self, path: str, frame: int) -> str:
path = path.format(frame)
path = os.path.abspath(path)
return path

def update_ocio(self) -> None:
if self.settings.ocio:
os.environ['OCIO'] = self.settings.ocio

0 comments on commit 5cdf593

Please sign in to comment.