Merge branch 'enhancement/maya_loaders_enabled_state_settings' of https://github.com/BigRoy/ayon-core into enhancement/maya_loaders_enabled_state_settings

This commit is contained in:
Roy Nieterau 2024-04-03 17:08:33 +02:00
commit a835032213
2 changed files with 10 additions and 2 deletions

View file

@ -11,6 +11,10 @@ from .manager import ApplicationManager
class ApplicationsAddon(AYONAddon, IPluginPaths):
name = "applications"
def initialize(self, settings):
# TODO remove when addon is removed from ayon-core
self.enabled = self.name in settings
def get_app_environments_for_context(
self,
project_name,

View file

@ -248,8 +248,12 @@ def get_track_items(
# collect all available active sequence track items
if not return_list:
sequence = get_current_sequence(name=sequence_name)
# get all available tracks from sequence
tracks = list(sequence.audioTracks()) + list(sequence.videoTracks())
tracks = []
if sequence is not None:
# get all available tracks from sequence
tracks.extend(sequence.audioTracks())
tracks.extend(sequence.videoTracks())
# loop all tracks
for track in tracks:
if check_locked and track.isLocked():