From 62482f1849e0b66d4daa7ae8bf74de2f9c6c09b1 Mon Sep 17 00:00:00 2001 From: Tomas Poveda Date: Tue, 14 Jul 2020 22:26:51 +0200 Subject: [PATCH] Now we do not lock files when trying to update paths --- artella/dccs/maya/plugin.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/artella/dccs/maya/plugin.py b/artella/dccs/maya/plugin.py index 89c5ccb..384a934 100644 --- a/artella/dccs/maya/plugin.py +++ b/artella/dccs/maya/plugin.py @@ -139,17 +139,8 @@ def _before_save(self, *args): self.validate_environment_for_callback('BeforeSave') - is_locked, _, _, _ = self.check_lock() - valid_lock = self.lock_file(force=True, show_dialogs=False) - if not valid_lock: - logger.error('Unable to checkout file. Paths cannot be updated automatically.') - return - self.update_paths(show_dialogs=False, skip_save=True) - if not is_locked: - self.unlock_file(force=True) - def _before_open_check(self, retcode, maya_file, client_data=None): """ Internal callback function that is called before a Maya scene is opened