mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
loader pass project name to discover loader plugins
This commit is contained in:
parent
6d2a869b2e
commit
0b24237bfe
1 changed files with 4 additions and 2 deletions
|
|
@ -434,7 +434,8 @@ class SubsetWidget(QtWidgets.QWidget):
|
|||
|
||||
# Get all representation->loader combinations available for the
|
||||
# index under the cursor, so we can list the user the options.
|
||||
available_loaders = discover_loader_plugins()
|
||||
project_name = self.dbcon.active_project()
|
||||
available_loaders = discover_loader_plugins(project_name)
|
||||
if self.tool_name:
|
||||
available_loaders = lib.remove_tool_name_from_loaders(
|
||||
available_loaders, self.tool_name
|
||||
|
|
@ -1330,7 +1331,8 @@ class RepresentationWidget(QtWidgets.QWidget):
|
|||
selected_side = self._get_selected_side(point_index, rows)
|
||||
# Get all representation->loader combinations available for the
|
||||
# index under the cursor, so we can list the user the options.
|
||||
available_loaders = discover_loader_plugins()
|
||||
project_name = self.dbcon.active_project()
|
||||
available_loaders = discover_loader_plugins(project_name)
|
||||
|
||||
filtered_loaders = []
|
||||
for loader in available_loaders:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue