Skip to content

Commit

Permalink
Now we do not lock files when trying to update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoveda committed Jul 14, 2020
1 parent 6062ccc commit 62482f1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions artella/dccs/maya/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 62482f1

Please sign in to comment.