Skip to content

Commit

Permalink
Fix special case when empty scene
Browse files Browse the repository at this point in the history
  • Loading branch information
2-REC committed Jul 26, 2021
1 parent bed576c commit 9ab990a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyblish_maya/plugins/collect_current_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def process(self, context):

# Maya returns forward-slashes by default
normalised = os.path.normpath(current_file)
if normalised == ".":
# 'normpath' returns '.' when given an empty string
normalised = ""

context.set_data('currentFile', value=normalised)

Expand Down

0 comments on commit 9ab990a

Please sign in to comment.