mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
check if loader is enabled in loader tool
This commit is contained in:
parent
7a32fa0b05
commit
5f4cad6851
1 changed files with 4 additions and 0 deletions
|
|
@ -451,6 +451,8 @@ class SubsetWidget(QtWidgets.QWidget):
|
|||
repre_loaders = []
|
||||
subset_loaders = []
|
||||
for loader in available_loaders:
|
||||
if not loader.enabled:
|
||||
continue
|
||||
# Skip if its a SubsetLoader.
|
||||
if issubclass(loader, SubsetLoaderPlugin):
|
||||
subset_loaders.append(loader)
|
||||
|
|
@ -1352,6 +1354,8 @@ class RepresentationWidget(QtWidgets.QWidget):
|
|||
|
||||
filtered_loaders = []
|
||||
for loader in available_loaders:
|
||||
if not loader.enabled:
|
||||
continue
|
||||
# Skip subset loaders
|
||||
if issubclass(loader, SubsetLoaderPlugin):
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue