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

Commit

Permalink
fix imports in look assigner after moving code to openpype repo
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Feb 11, 2022
1 parent aadf253 commit ab95279
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
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

0 comments on commit ab95279

Please sign in to comment.