fix imports in look assigner after moving code to openpype repo

This commit is contained in:
Jakub Trllo 2022-02-11 17:36:36 +01:00
parent aadf253a13
commit ab9527969b
3 changed files with 4 additions and 8 deletions

View file

@ -2,9 +2,9 @@ from collections import defaultdict
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):

View file

@ -10,11 +10,9 @@ import six
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__)
@ -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)

View file

@ -16,8 +16,6 @@ from . import views
from maya import cmds
MODELINDEX = QtCore.QModelIndex()
class AssetOutliner(QtWidgets.QWidget):
refreshed = QtCore.Signal()