mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
flame: convert color mapping to classmethod
This commit is contained in:
parent
cf50722e1f
commit
79eb997e4b
1 changed files with 5 additions and 4 deletions
|
|
@ -692,16 +692,17 @@ class ClipLoader(LoaderPlugin):
|
|||
|
||||
_mapping = None
|
||||
|
||||
def get_native_colorspace(self, input_colorspace):
|
||||
if not self._mapping:
|
||||
@classmethod
|
||||
def get_native_colorspace(cls, input_colorspace):
|
||||
if not cls._mapping:
|
||||
settings = get_current_project_settings()["flame"]
|
||||
mapping = settings["imageio"]["profilesMapping"]["inputs"]
|
||||
self._mapping = {
|
||||
cls._mapping = {
|
||||
input["ocioName"]: input["flameName"]
|
||||
for input in mapping
|
||||
}
|
||||
|
||||
return self._mapping.get(input_colorspace)
|
||||
return cls._mapping.get(input_colorspace)
|
||||
|
||||
|
||||
class OpenClipSolver(flib.MediaInfoFile):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue