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

LookAssigner: Fix imports after moving code to OpenPype repository #2701

Merged
merged 1 commit into from
Feb 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openpype/tools/mayalookassigner/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from Qt import QtCore

from avalon.tools import models
from avalon.vendor import qtawesome
from avalon.style import colors
from openpype.tools.utils import models


class AssetModel(models.TreeModel):
Expand Down
8 changes: 3 additions & 5 deletions openpype/tools/mayalookassigner/vray_proxies.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
import alembic.Abc
from maya import cmds

import avalon.io as io
import avalon.maya
import avalon.api as api
from avalon import io, api

import openpype.hosts.maya.api.lib as lib
from openpype.hosts.maya.api import lib


log = logging.getLogger(__name__)
Expand Down Expand Up @@ -203,7 +201,7 @@ def load_look(version_id):
raise RuntimeError("Could not find LookLoader, this is a bug")

# Reference the look file
with avalon.maya.maintained_selection():
with lib.maintained_selection():
container_node = api.load(loader, look_representation)

return cmds.sets(container_node, query=True)
Expand Down
2 changes: 0 additions & 2 deletions openpype/tools/mayalookassigner/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

from maya import cmds

MODELINDEX = QtCore.QModelIndex()


class AssetOutliner(QtWidgets.QWidget):
refreshed = QtCore.Signal()
Expand Down