mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
updated names of workio methods
This commit is contained in:
parent
ba02f735d0
commit
c14f8792fa
5 changed files with 10 additions and 10 deletions
|
|
@ -77,7 +77,7 @@ def on_open(*args):
|
|||
|
||||
# Show outdated pop-up
|
||||
def _on_show_inventory():
|
||||
import avalon.tools.cbsceneinventory as tool
|
||||
import avalon.tools.sceneinventory as tool
|
||||
tool.show(parent=parent)
|
||||
|
||||
dialog = popup.Popup(parent=parent)
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ def on_open(_):
|
|||
|
||||
# Show outdated pop-up
|
||||
def _on_show_inventory():
|
||||
import avalon.tools.cbsceneinventory as tool
|
||||
import avalon.tools.sceneinventory as tool
|
||||
tool.show(parent=parent)
|
||||
|
||||
dialog = popup.Popup(parent=parent)
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ def override_toolbox_ui():
|
|||
"res")
|
||||
icons = os.path.join(res, "icons")
|
||||
|
||||
import avalon.tools.cbsceneinventory as inventory
|
||||
import avalon.tools.cbloader as loader
|
||||
import avalon.tools.sceneinventory as inventory
|
||||
import avalon.tools.loader as loader
|
||||
from avalon.maya.pipeline import launch_workfiles_app
|
||||
import mayalookassigner
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ from avalon import api as avalon
|
|||
from pyblish import api as pyblish
|
||||
|
||||
from .workio import (
|
||||
open,
|
||||
save,
|
||||
open_file,
|
||||
save_file,
|
||||
current_file,
|
||||
has_unsaved_changes,
|
||||
file_extensions,
|
||||
|
|
@ -21,8 +21,8 @@ from .tags import add_tags_from_presets
|
|||
|
||||
__all__ = [
|
||||
# Workfiles API
|
||||
"open",
|
||||
"save",
|
||||
"open_file",
|
||||
"save_file",
|
||||
"current_file",
|
||||
"has_unsaved_changes",
|
||||
"file_extensions",
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ def has_unsaved_changes():
|
|||
return True
|
||||
|
||||
|
||||
def save(filepath):
|
||||
def save_file(filepath):
|
||||
project = hiero.core.projects()[-1]
|
||||
if project:
|
||||
project.saveAs(filepath)
|
||||
|
|
@ -24,7 +24,7 @@ def save(filepath):
|
|||
project.saveAs(filepath)
|
||||
|
||||
|
||||
def open(filepath):
|
||||
def open_file(filepath):
|
||||
hiero.core.openProject(filepath)
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue