From 26408c22c2d2c5ff23c610fe4a30253ff74fc81e Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 12 Nov 2021 21:20:01 +0100 Subject: [PATCH] changed usage of creator --- openpype/tools/utils/host_tools.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/openpype/tools/utils/host_tools.py b/openpype/tools/utils/host_tools.py index a15d12b386..9f2adfdfef 100644 --- a/openpype/tools/utils/host_tools.py +++ b/openpype/tools/utils/host_tools.py @@ -109,23 +109,19 @@ class HostToolsHelper: def get_creator_tool(self, parent): """Create, cache and return creator tool window.""" if self._creator_tool is None: - from avalon.tools.creator.app import Window + from openpype.tools.creator import CreatorWindow - creator_window = Window(parent=parent or self._parent) + creator_window = CreatorWindow(parent=parent or self._parent) self._creator_tool = creator_window return self._creator_tool def show_creator(self, parent=None): """Show tool to create new instantes for publishing.""" - from avalon import style - creator_tool = self.get_creator_tool(parent) creator_tool.refresh() creator_tool.show() - creator_tool.setStyleSheet(style.load_stylesheet()) - # Pull window to the front. creator_tool.raise_() creator_tool.activateWindow()