remove legacy preset loading

This commit is contained in:
Milan Kolar 2020-12-03 18:18:55 +01:00
parent 27fbe814f5
commit c8c6902ae8
2 changed files with 1 additions and 7 deletions

View file

@ -102,6 +102,7 @@ class ExtractCameraMayaScene(pype.api.Extractor):
def process(self, instance): def process(self, instance):
"""Plugin entry point.""" """Plugin entry point."""
# get settings # get settings
# TODO: load all settings directly, rather than passing them through context
ext_mapping = instance.context.data["presets"]["maya"].get("ext_mapping") # noqa: E501 ext_mapping = instance.context.data["presets"]["maya"].get("ext_mapping") # noqa: E501
if ext_mapping: if ext_mapping:
self.log.info("Looking in presets for scene type ...") self.log.info("Looking in presets for scene type ...")

View file

@ -428,13 +428,6 @@ def burnins_from_data(
} }
""" """
# Use legacy processing when options are not set
# TODO: remove legacy review
if options is None or burnin_values is None:
presets = config.get_presets().get("tools", {}).get("burnins", {})
options = presets.get("options")
burnin_values = presets.get("burnins") or {}
burnin = ModifiedBurnins(input_path, options_init=options) burnin = ModifiedBurnins(input_path, options_init=options)
frame_start = data.get("frame_start") frame_start = data.get("frame_start")