BigRoy's comment - use a conditional

This commit is contained in:
MustafaJafar 2023-11-08 18:00:02 +02:00
parent fd64850962
commit 205c0642d5

View file

@ -47,12 +47,14 @@ class ExtractOpenGL(publish.Extractor,
"camera_name": instance.data.get("review_camera")
}
colorspace = ropnode.evalParm("ociocolorspace")
# inject colorspace data
self.set_representation_colorspace(
representation, instance.context,
colorspace=colorspace
)
if ropnode.evalParm("colorcorrect") == 2: # OpenColorIO enabled
colorspace = ropnode.evalParm("ociocolorspace")
# inject colorspace data
self.set_representation_colorspace(
representation, instance.context,
colorspace=colorspace
)
if "representations" not in instance.data:
instance.data["representations"] = []
instance.data["representations"].append(representation)