changed usage of creator

This commit is contained in:
iLLiCiTiT 2021-11-12 21:20:01 +01:00
parent 998434cd12
commit 26408c22c2

View file

@ -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()