Merge branch 'develop' into bugfix/workfiles-tasks-selection

This commit is contained in:
Jakub Trllo 2024-06-17 15:32:33 +02:00 committed by GitHub
commit 5ccefbf2b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 4 deletions

View file

@ -13,7 +13,15 @@ class CollectFileDependencies(plugin.MayaContextPlugin):
@classmethod
def apply_settings(cls, project_settings):
# Disable plug-in if not used for deadline submission anyway
settings = project_settings["deadline"]["publish"]["MayaSubmitDeadline"] # noqa
if "deadline" not in project_settings:
cls.enabled = False
return
settings = (
project_settings
["deadline"]
["publish"]
["MayaSubmitDeadline"]
)
cls.enabled = settings.get("asset_dependencies", True)
def process(self, context):

View file

@ -28,7 +28,16 @@ class ExtractImportReference(plugin.MayaExtractorPlugin,
@classmethod
def apply_settings(cls, project_settings):
cls.active = project_settings["deadline"]["publish"]["MayaSubmitDeadline"]["import_reference"] # noqa
if "deadline" not in project_settings:
cls.enabled = False
return
cls.active = (
project_settings
["deadline"]
["publish"]
["MayaSubmitDeadline"]
["import_reference"]
)
def process(self, instance):
if not self.is_active(instance.data):

View file

@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
"""Package declaring AYON addon 'maya' version."""
__version__ = "0.2.3"
__version__ = "0.2.4"

View file

@ -1,6 +1,6 @@
name = "maya"
title = "Maya"
version = "0.2.3"
version = "0.2.4"
client_dir = "ayon_maya"
ayon_required_addons = {