mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
suggestions from PR
This commit is contained in:
parent
14b52ac625
commit
ed89581dfb
3 changed files with 4 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ from .lib import (
|
|||
get_instance_staging_dir,
|
||||
)
|
||||
|
||||
from ..colorspace import (
|
||||
from openpype.pipeline.colorspace import (
|
||||
get_imageio_colorspace_from_filepath,
|
||||
get_imageio_config,
|
||||
get_imageio_file_rules
|
||||
|
|
|
|||
|
|
@ -533,6 +533,8 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
|
|||
if repre.get("colorspaceData"):
|
||||
colorspace = repre["colorspaceData"]["colorspace"]
|
||||
# replace spaces with underscores
|
||||
# pipeline.colorspace.parse_colorspace_from_filepath
|
||||
# is checking it with underscores too
|
||||
colorspace = colorspace.replace(" ", "_")
|
||||
template_data["colorspace"] = colorspace
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ def get_views_data(config_path):
|
|||
config = ocio.Config().CreateFromFile(str(config_path))
|
||||
|
||||
return {
|
||||
"{}/{}".format(d, v): {"display": d, "view": v}
|
||||
f"{d}/{v}": {"display": d, "view": v}
|
||||
for d in config.getDisplays()
|
||||
for v in config.getViews(d)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue