mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Add version check for Hou 20+
This commit is contained in:
parent
4ba0259e5f
commit
c7a1ab2a65
1 changed files with 4 additions and 0 deletions
|
|
@ -166,6 +166,10 @@ class ImageLoader(load.LoaderPlugin):
|
|||
dict: Parm to value mapping if colorspace data is defined.
|
||||
|
||||
"""
|
||||
# Using OCIO colorspace on COP2 File node is only supported in Hou 20+
|
||||
major, _, _ = hou.applicationVersion()
|
||||
if major < 20:
|
||||
return {}
|
||||
|
||||
data = representation.get("data", {}).get("colorspaceData", {})
|
||||
if not data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue