securing backward compatibility of project locked anatomy settings

This commit is contained in:
Jakub Jezek 2021-11-25 11:28:26 +01:00
parent 005919f45c
commit f47d74d7b4
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -197,7 +197,15 @@ class ExporterReview(object):
def get_imageio_baking_profile(self):
from . import lib as opnlib
nuke_imageio = opnlib.get_nuke_imageio_settings()
return nuke_imageio["baking"]["viewerProcess"]
# TODO: this is only securing backward compatibility lets remove
# this once all projects's anotomy are upated to newer config
if "baking" in nuke_imageio.keys():
return nuke_imageio["baking"]["viewerProcess"]
else:
return nuke_imageio["viewer"]["viewerProcess"]
class ExporterReviewLut(ExporterReview):