mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
remove lockfile during publish
This commit is contained in:
parent
563515c0e6
commit
c2d9ef859e
1 changed files with 2 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import pyblish.api
|
||||
|
||||
from openpype.pipeline.workfile.lock_workfile import(
|
||||
is_workfile_lock_enabled,
|
||||
remove_workfile_lock
|
||||
|
|
@ -28,6 +29,7 @@ class SaveCurrentScene(pyblish.api.ContextPlugin):
|
|||
return
|
||||
|
||||
active_project = legacy_io.active_project()
|
||||
# remove lockfile before saving
|
||||
if is_workfile_lock_enabled("maya", active_project):
|
||||
remove_workfile_lock(current)
|
||||
self.log.info("Saving current file..")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue