mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
changed usage of creator
This commit is contained in:
parent
998434cd12
commit
26408c22c2
1 changed files with 2 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue