Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2944 from pypeclub/bugfix/scene_inventory_imports
Browse files Browse the repository at this point in the history
SceneInventory: Fix imports in UI
  • Loading branch information
iLLiCiTiT authored Mar 24, 2022
2 parents d202bbe + cf40d52 commit 61b430b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions openpype/pipeline/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,8 @@ def discover_inventory_actions():
filtered_actions = []
for action in actions:
if action is not InventoryAction:
print("DISCOVERED", action)
filtered_actions.append(action)
else:
print("GOT SOURCE")

return filtered_actions


Expand Down
7 changes: 4 additions & 3 deletions openpype/tools/sceneinventory/switch_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
import qtawesome
from bson.objectid import ObjectId

from avalon import io, pipeline
from openpype.pipeline import (
from avalon import io
from openpype.pipeline.load import (
discover_loader_plugins,
switch_container,
get_repres_contexts,
loaders_from_repre_context,
)

from .widgets import (
Expand Down Expand Up @@ -370,7 +371,7 @@ def _get_loaders(self, repre_ids):

loaders = None
for repre_context in repre_contexts.values():
_loaders = set(pipeline.loaders_from_repre_context(
_loaders = set(loaders_from_repre_context(
available_loaders, repre_context
))
if loaders is None:
Expand Down

0 comments on commit 61b430b

Please sign in to comment.